diff --git a/docs/mdsource/parameterised-xunitv2.source.md b/docs/mdsource/parameterised-xunitv2.source.md index 01d0244130..a6dad3df36 100644 --- a/docs/mdsource/parameterised-xunitv2.source.md +++ b/docs/mdsource/parameterised-xunitv2.source.md @@ -117,4 +117,4 @@ snippet: UseParametersHashInstanceXunit ### Fluent -snippet: UseParametersHashInstanceXunit \ No newline at end of file +snippet: UseParametersHashFluentXunit \ No newline at end of file diff --git a/docs/parameterised-xunitv2.md b/docs/parameterised-xunitv2.md index 5405bba405..26d62c20b1 100644 --- a/docs/parameterised-xunitv2.md +++ b/docs/parameterised-xunitv2.md @@ -439,19 +439,16 @@ public Task HashParametersUsage(string arg) ### Fluent - - + + ```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(); ``` -snippet source | anchor +snippet source | anchor