Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jan 10, 2025
2 parents 7aa54e4 + d95a260 commit cae9c0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/mdsource/verify-directory.source.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ snippet: VerifyDirectoryFilterXunitV3

An optional `info` parameter can be supplied to add more context to the test. The instance passed will be json serialized.

snippet: VerifyZipWithStructureXunitV3
snippet: VerifyDirectoryWithInfoXunitV3


## FileScrubber
Expand Down
12 changes: 7 additions & 5 deletions docs/verify-directory.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ public Task WithDirectoryFiltered() =>

An optional `info` parameter can be supplied to add more context to the test. The instance passed will be json serialized.

<!-- snippet: VerifyZipWithStructureXunitV3 -->
<a id='snippet-VerifyZipWithStructureXunitV3'></a>
<!-- snippet: VerifyDirectoryWithInfoXunitV3 -->
<a id='snippet-VerifyDirectoryWithInfoXunitV3'></a>
```cs
[Fact]
public Task WithZipAndStructure() =>
VerifyZip(zipPath, includeStructure: true);
public Task VerifyDirectoryWithInfo() =>
VerifyDirectory(
directoryToVerify,
info: "the info");
```
<sup><a href='/src/Verify.XunitV3.Tests/Tests.cs#L156-L162' title='Snippet source file'>snippet source</a> | <a href='#snippet-VerifyZipWithStructureXunitV3' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.XunitV3.Tests/Tests.cs#L100-L108' title='Snippet source file'>snippet source</a> | <a href='#snippet-VerifyDirectoryWithInfoXunitV3' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->


Expand Down

0 comments on commit cae9c0b

Please sign in to comment.