From 0b4a32cfde65b18c95db75b51ba50003716093f4 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sun, 13 Oct 2024 21:54:50 +1100 Subject: [PATCH] docs --- docs/mdsource/parameterised-xunitv2.source.md | 2 +- docs/parameterised-xunitv2.md | 17 +++++++---------- 2 files changed, 8 insertions(+), 11 deletions(-) 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