Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Oct 13, 2024
1 parent 398a6db commit 0b4a32c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/mdsource/parameterised-xunitv2.source.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ snippet: UseParametersHashInstanceXunit

### Fluent

snippet: UseParametersHashInstanceXunit
snippet: UseParametersHashFluentXunit
17 changes: 7 additions & 10 deletions docs/parameterised-xunitv2.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,19 +439,16 @@ public Task HashParametersUsage(string arg)

### Fluent

<!-- snippet: UseParametersHashInstanceXunit -->
<a id='snippet-UseParametersHashInstanceXunit'></a>
<!-- snippet: UseParametersHashFluentXunit -->
<a id='snippet-UseParametersHashFluentXunit'></a>
```cs
[Theory]
[InlineData("Value1")]
[InlineData("Value2")]
public Task HashParametersUsage(string arg)
{
var settings = new VerifySettings();
settings.UseParameters(arg);
settings.HashParameters();
return Verify(arg, settings);
}
public Task HashParametersUsageFluent(string arg) =>
Verify(arg)
.UseParameters(arg)
.HashParameters();
```
<sup><a href='/src/Verify.Xunit.Tests/Snippets/ParametersHashSample.cs#L3-L16' title='Snippet source file'>snippet source</a> | <a href='#snippet-UseParametersHashInstanceXunit' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Xunit.Tests/Snippets/ParametersHashSample.cs#L18-L28' title='Snippet source file'>snippet source</a> | <a href='#snippet-UseParametersHashFluentXunit' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

0 comments on commit 0b4a32c

Please sign in to comment.