diff --git a/docs/wiz/Linux_Other_Gui_MSTest_AppVeyor.md b/docs/wiz/Linux_Other_Gui_MSTest_AppVeyor.md index 8e799f7dfa..c400976d10 100644 --- a/docs/wiz/Linux_Other_Gui_MSTest_AppVeyor.md +++ b/docs/wiz/Linux_Other_Gui_MSTest_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Other_Gui_MSTest_AzureDevOps.md b/docs/wiz/Linux_Other_Gui_MSTest_AzureDevOps.md index a13bce962a..36dcb9cb0a 100644 --- a/docs/wiz/Linux_Other_Gui_MSTest_AzureDevOps.md +++ b/docs/wiz/Linux_Other_Gui_MSTest_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Other_Gui_MSTest_GitHubActions.md b/docs/wiz/Linux_Other_Gui_MSTest_GitHubActions.md index aa3aa775e1..6dab4242e1 100644 --- a/docs/wiz/Linux_Other_Gui_MSTest_GitHubActions.md +++ b/docs/wiz/Linux_Other_Gui_MSTest_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Other_Gui_MSTest_None.md b/docs/wiz/Linux_Other_Gui_MSTest_None.md index 4b53d1943e..30e6b4ed30 100644 --- a/docs/wiz/Linux_Other_Gui_MSTest_None.md +++ b/docs/wiz/Linux_Other_Gui_MSTest_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Other_Gui_NUnit_AppVeyor.md b/docs/wiz/Linux_Other_Gui_NUnit_AppVeyor.md index 0aeb5c6b4a..7909e94dca 100644 --- a/docs/wiz/Linux_Other_Gui_NUnit_AppVeyor.md +++ b/docs/wiz/Linux_Other_Gui_NUnit_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Other_Gui_NUnit_AzureDevOps.md b/docs/wiz/Linux_Other_Gui_NUnit_AzureDevOps.md index 1f3d7fa84d..6e8b1578b8 100644 --- a/docs/wiz/Linux_Other_Gui_NUnit_AzureDevOps.md +++ b/docs/wiz/Linux_Other_Gui_NUnit_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Other_Gui_NUnit_GitHubActions.md b/docs/wiz/Linux_Other_Gui_NUnit_GitHubActions.md index 4cf2a0bf81..02ceb077b9 100644 --- a/docs/wiz/Linux_Other_Gui_NUnit_GitHubActions.md +++ b/docs/wiz/Linux_Other_Gui_NUnit_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Other_Gui_NUnit_None.md b/docs/wiz/Linux_Other_Gui_NUnit_None.md index afb4d46854..fc9219acd3 100644 --- a/docs/wiz/Linux_Other_Gui_NUnit_None.md +++ b/docs/wiz/Linux_Other_Gui_NUnit_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Other_Gui_xUnit_AppVeyor.md b/docs/wiz/Linux_Other_Gui_xUnit_AppVeyor.md index dd2c82e175..1f83111c12 100644 --- a/docs/wiz/Linux_Other_Gui_xUnit_AppVeyor.md +++ b/docs/wiz/Linux_Other_Gui_xUnit_AppVeyor.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Linux_Other_Gui_xUnit_AzureDevOps.md b/docs/wiz/Linux_Other_Gui_xUnit_AzureDevOps.md index b79a9daf85..ed3fdb3aec 100644 --- a/docs/wiz/Linux_Other_Gui_xUnit_AzureDevOps.md +++ b/docs/wiz/Linux_Other_Gui_xUnit_AzureDevOps.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Linux_Other_Gui_xUnit_GitHubActions.md b/docs/wiz/Linux_Other_Gui_xUnit_GitHubActions.md index 903e65283c..c8c183288f 100644 --- a/docs/wiz/Linux_Other_Gui_xUnit_GitHubActions.md +++ b/docs/wiz/Linux_Other_Gui_xUnit_GitHubActions.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Linux_Other_Gui_xUnit_None.md b/docs/wiz/Linux_Other_Gui_xUnit_None.md index bceb85f001..e1e2721cd3 100644 --- a/docs/wiz/Linux_Other_Gui_xUnit_None.md +++ b/docs/wiz/Linux_Other_Gui_xUnit_None.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Linux_Rider_Gui_MSTest_AppVeyor.md b/docs/wiz/Linux_Rider_Gui_MSTest_AppVeyor.md index daa5594747..23240648fa 100644 --- a/docs/wiz/Linux_Rider_Gui_MSTest_AppVeyor.md +++ b/docs/wiz/Linux_Rider_Gui_MSTest_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Rider_Gui_MSTest_AzureDevOps.md b/docs/wiz/Linux_Rider_Gui_MSTest_AzureDevOps.md index 304dce6e4b..ab558c10ae 100644 --- a/docs/wiz/Linux_Rider_Gui_MSTest_AzureDevOps.md +++ b/docs/wiz/Linux_Rider_Gui_MSTest_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Rider_Gui_MSTest_GitHubActions.md b/docs/wiz/Linux_Rider_Gui_MSTest_GitHubActions.md index f7e4ccb226..3b5204f083 100644 --- a/docs/wiz/Linux_Rider_Gui_MSTest_GitHubActions.md +++ b/docs/wiz/Linux_Rider_Gui_MSTest_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Rider_Gui_MSTest_None.md b/docs/wiz/Linux_Rider_Gui_MSTest_None.md index e27bc527bb..8055809bb1 100644 --- a/docs/wiz/Linux_Rider_Gui_MSTest_None.md +++ b/docs/wiz/Linux_Rider_Gui_MSTest_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Rider_Gui_NUnit_AppVeyor.md b/docs/wiz/Linux_Rider_Gui_NUnit_AppVeyor.md index 79696add19..92ec4759ae 100644 --- a/docs/wiz/Linux_Rider_Gui_NUnit_AppVeyor.md +++ b/docs/wiz/Linux_Rider_Gui_NUnit_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Rider_Gui_NUnit_AzureDevOps.md b/docs/wiz/Linux_Rider_Gui_NUnit_AzureDevOps.md index 0e8688170b..3274112de7 100644 --- a/docs/wiz/Linux_Rider_Gui_NUnit_AzureDevOps.md +++ b/docs/wiz/Linux_Rider_Gui_NUnit_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Rider_Gui_NUnit_GitHubActions.md b/docs/wiz/Linux_Rider_Gui_NUnit_GitHubActions.md index e988486abf..6c2ec53ed0 100644 --- a/docs/wiz/Linux_Rider_Gui_NUnit_GitHubActions.md +++ b/docs/wiz/Linux_Rider_Gui_NUnit_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Rider_Gui_NUnit_None.md b/docs/wiz/Linux_Rider_Gui_NUnit_None.md index 3aebdc467f..3ddf5af2a8 100644 --- a/docs/wiz/Linux_Rider_Gui_NUnit_None.md +++ b/docs/wiz/Linux_Rider_Gui_NUnit_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Linux_Rider_Gui_xUnit_AppVeyor.md b/docs/wiz/Linux_Rider_Gui_xUnit_AppVeyor.md index 3f1a46ff41..2066ab7876 100644 --- a/docs/wiz/Linux_Rider_Gui_xUnit_AppVeyor.md +++ b/docs/wiz/Linux_Rider_Gui_xUnit_AppVeyor.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Linux_Rider_Gui_xUnit_AzureDevOps.md b/docs/wiz/Linux_Rider_Gui_xUnit_AzureDevOps.md index 4b7f2ca310..45e937cb4b 100644 --- a/docs/wiz/Linux_Rider_Gui_xUnit_AzureDevOps.md +++ b/docs/wiz/Linux_Rider_Gui_xUnit_AzureDevOps.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Linux_Rider_Gui_xUnit_GitHubActions.md b/docs/wiz/Linux_Rider_Gui_xUnit_GitHubActions.md index 4d5c045849..65d1ab9e5e 100644 --- a/docs/wiz/Linux_Rider_Gui_xUnit_GitHubActions.md +++ b/docs/wiz/Linux_Rider_Gui_xUnit_GitHubActions.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Linux_Rider_Gui_xUnit_None.md b/docs/wiz/Linux_Rider_Gui_xUnit_None.md index 01d0e0e233..db03c32864 100644 --- a/docs/wiz/Linux_Rider_Gui_xUnit_None.md +++ b/docs/wiz/Linux_Rider_Gui_xUnit_None.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/MacOS_Other_Gui_MSTest_AppVeyor.md b/docs/wiz/MacOS_Other_Gui_MSTest_AppVeyor.md index c9c80f7759..23cc60e144 100644 --- a/docs/wiz/MacOS_Other_Gui_MSTest_AppVeyor.md +++ b/docs/wiz/MacOS_Other_Gui_MSTest_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Other_Gui_MSTest_AzureDevOps.md b/docs/wiz/MacOS_Other_Gui_MSTest_AzureDevOps.md index 355a3d3091..366adc90e2 100644 --- a/docs/wiz/MacOS_Other_Gui_MSTest_AzureDevOps.md +++ b/docs/wiz/MacOS_Other_Gui_MSTest_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Other_Gui_MSTest_GitHubActions.md b/docs/wiz/MacOS_Other_Gui_MSTest_GitHubActions.md index f261940e97..e43013bd07 100644 --- a/docs/wiz/MacOS_Other_Gui_MSTest_GitHubActions.md +++ b/docs/wiz/MacOS_Other_Gui_MSTest_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Other_Gui_MSTest_None.md b/docs/wiz/MacOS_Other_Gui_MSTest_None.md index acdc510478..ff9187a654 100644 --- a/docs/wiz/MacOS_Other_Gui_MSTest_None.md +++ b/docs/wiz/MacOS_Other_Gui_MSTest_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Other_Gui_NUnit_AppVeyor.md b/docs/wiz/MacOS_Other_Gui_NUnit_AppVeyor.md index 2a1ef4cc7e..b272ebf301 100644 --- a/docs/wiz/MacOS_Other_Gui_NUnit_AppVeyor.md +++ b/docs/wiz/MacOS_Other_Gui_NUnit_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Other_Gui_NUnit_AzureDevOps.md b/docs/wiz/MacOS_Other_Gui_NUnit_AzureDevOps.md index 4369639240..68a63a2460 100644 --- a/docs/wiz/MacOS_Other_Gui_NUnit_AzureDevOps.md +++ b/docs/wiz/MacOS_Other_Gui_NUnit_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Other_Gui_NUnit_GitHubActions.md b/docs/wiz/MacOS_Other_Gui_NUnit_GitHubActions.md index 13fa1f1886..1625792ea5 100644 --- a/docs/wiz/MacOS_Other_Gui_NUnit_GitHubActions.md +++ b/docs/wiz/MacOS_Other_Gui_NUnit_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Other_Gui_NUnit_None.md b/docs/wiz/MacOS_Other_Gui_NUnit_None.md index 8e10ab90f8..2cf542e877 100644 --- a/docs/wiz/MacOS_Other_Gui_NUnit_None.md +++ b/docs/wiz/MacOS_Other_Gui_NUnit_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Other_Gui_xUnit_AppVeyor.md b/docs/wiz/MacOS_Other_Gui_xUnit_AppVeyor.md index c4dd3fab17..6c0940ef46 100644 --- a/docs/wiz/MacOS_Other_Gui_xUnit_AppVeyor.md +++ b/docs/wiz/MacOS_Other_Gui_xUnit_AppVeyor.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/MacOS_Other_Gui_xUnit_AzureDevOps.md b/docs/wiz/MacOS_Other_Gui_xUnit_AzureDevOps.md index 361217e18a..5016b9fb6f 100644 --- a/docs/wiz/MacOS_Other_Gui_xUnit_AzureDevOps.md +++ b/docs/wiz/MacOS_Other_Gui_xUnit_AzureDevOps.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/MacOS_Other_Gui_xUnit_GitHubActions.md b/docs/wiz/MacOS_Other_Gui_xUnit_GitHubActions.md index aaba32beaf..57d25f44e9 100644 --- a/docs/wiz/MacOS_Other_Gui_xUnit_GitHubActions.md +++ b/docs/wiz/MacOS_Other_Gui_xUnit_GitHubActions.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/MacOS_Other_Gui_xUnit_None.md b/docs/wiz/MacOS_Other_Gui_xUnit_None.md index 6d4d8b52f1..03f124a9ef 100644 --- a/docs/wiz/MacOS_Other_Gui_xUnit_None.md +++ b/docs/wiz/MacOS_Other_Gui_xUnit_None.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/MacOS_Rider_Gui_MSTest_AppVeyor.md b/docs/wiz/MacOS_Rider_Gui_MSTest_AppVeyor.md index b3ab0eb778..be13059420 100644 --- a/docs/wiz/MacOS_Rider_Gui_MSTest_AppVeyor.md +++ b/docs/wiz/MacOS_Rider_Gui_MSTest_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Rider_Gui_MSTest_AzureDevOps.md b/docs/wiz/MacOS_Rider_Gui_MSTest_AzureDevOps.md index 031625384f..6a11143fc7 100644 --- a/docs/wiz/MacOS_Rider_Gui_MSTest_AzureDevOps.md +++ b/docs/wiz/MacOS_Rider_Gui_MSTest_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Rider_Gui_MSTest_GitHubActions.md b/docs/wiz/MacOS_Rider_Gui_MSTest_GitHubActions.md index c9f6daaf4d..35c9160815 100644 --- a/docs/wiz/MacOS_Rider_Gui_MSTest_GitHubActions.md +++ b/docs/wiz/MacOS_Rider_Gui_MSTest_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Rider_Gui_MSTest_None.md b/docs/wiz/MacOS_Rider_Gui_MSTest_None.md index 8268ef620b..9d7aceba70 100644 --- a/docs/wiz/MacOS_Rider_Gui_MSTest_None.md +++ b/docs/wiz/MacOS_Rider_Gui_MSTest_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Rider_Gui_NUnit_AppVeyor.md b/docs/wiz/MacOS_Rider_Gui_NUnit_AppVeyor.md index f0c4c398f2..779774e6ad 100644 --- a/docs/wiz/MacOS_Rider_Gui_NUnit_AppVeyor.md +++ b/docs/wiz/MacOS_Rider_Gui_NUnit_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Rider_Gui_NUnit_AzureDevOps.md b/docs/wiz/MacOS_Rider_Gui_NUnit_AzureDevOps.md index e90e97e4ad..8111142f95 100644 --- a/docs/wiz/MacOS_Rider_Gui_NUnit_AzureDevOps.md +++ b/docs/wiz/MacOS_Rider_Gui_NUnit_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Rider_Gui_NUnit_GitHubActions.md b/docs/wiz/MacOS_Rider_Gui_NUnit_GitHubActions.md index a96fe389d4..888eed744b 100644 --- a/docs/wiz/MacOS_Rider_Gui_NUnit_GitHubActions.md +++ b/docs/wiz/MacOS_Rider_Gui_NUnit_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Rider_Gui_NUnit_None.md b/docs/wiz/MacOS_Rider_Gui_NUnit_None.md index aad39e484c..3abc0f149d 100644 --- a/docs/wiz/MacOS_Rider_Gui_NUnit_None.md +++ b/docs/wiz/MacOS_Rider_Gui_NUnit_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/MacOS_Rider_Gui_xUnit_AppVeyor.md b/docs/wiz/MacOS_Rider_Gui_xUnit_AppVeyor.md index 71a51efb1b..1d2d4af68c 100644 --- a/docs/wiz/MacOS_Rider_Gui_xUnit_AppVeyor.md +++ b/docs/wiz/MacOS_Rider_Gui_xUnit_AppVeyor.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/MacOS_Rider_Gui_xUnit_AzureDevOps.md b/docs/wiz/MacOS_Rider_Gui_xUnit_AzureDevOps.md index 24f23ff40b..ffb4f51ef9 100644 --- a/docs/wiz/MacOS_Rider_Gui_xUnit_AzureDevOps.md +++ b/docs/wiz/MacOS_Rider_Gui_xUnit_AzureDevOps.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/MacOS_Rider_Gui_xUnit_GitHubActions.md b/docs/wiz/MacOS_Rider_Gui_xUnit_GitHubActions.md index 35a03b2420..6d8176828d 100644 --- a/docs/wiz/MacOS_Rider_Gui_xUnit_GitHubActions.md +++ b/docs/wiz/MacOS_Rider_Gui_xUnit_GitHubActions.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/MacOS_Rider_Gui_xUnit_None.md b/docs/wiz/MacOS_Rider_Gui_xUnit_None.md index e0ccaf9a3b..70fcd25257 100644 --- a/docs/wiz/MacOS_Rider_Gui_xUnit_None.md +++ b/docs/wiz/MacOS_Rider_Gui_xUnit_None.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_Other_Gui_MSTest_AppVeyor.md b/docs/wiz/Windows_Other_Gui_MSTest_AppVeyor.md index 8b5dd0f52f..2af0d86b9c 100644 --- a/docs/wiz/Windows_Other_Gui_MSTest_AppVeyor.md +++ b/docs/wiz/Windows_Other_Gui_MSTest_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Other_Gui_MSTest_AzureDevOps.md b/docs/wiz/Windows_Other_Gui_MSTest_AzureDevOps.md index f97588563a..aff4677f9c 100644 --- a/docs/wiz/Windows_Other_Gui_MSTest_AzureDevOps.md +++ b/docs/wiz/Windows_Other_Gui_MSTest_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Other_Gui_MSTest_GitHubActions.md b/docs/wiz/Windows_Other_Gui_MSTest_GitHubActions.md index 37da62d597..06315afee3 100644 --- a/docs/wiz/Windows_Other_Gui_MSTest_GitHubActions.md +++ b/docs/wiz/Windows_Other_Gui_MSTest_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Other_Gui_MSTest_None.md b/docs/wiz/Windows_Other_Gui_MSTest_None.md index 816951a6af..878ea1f8c5 100644 --- a/docs/wiz/Windows_Other_Gui_MSTest_None.md +++ b/docs/wiz/Windows_Other_Gui_MSTest_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Other_Gui_NUnit_AppVeyor.md b/docs/wiz/Windows_Other_Gui_NUnit_AppVeyor.md index 70d8711470..4fa58d6792 100644 --- a/docs/wiz/Windows_Other_Gui_NUnit_AppVeyor.md +++ b/docs/wiz/Windows_Other_Gui_NUnit_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Other_Gui_NUnit_AzureDevOps.md b/docs/wiz/Windows_Other_Gui_NUnit_AzureDevOps.md index 05fd57537b..8671cd1a3b 100644 --- a/docs/wiz/Windows_Other_Gui_NUnit_AzureDevOps.md +++ b/docs/wiz/Windows_Other_Gui_NUnit_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Other_Gui_NUnit_GitHubActions.md b/docs/wiz/Windows_Other_Gui_NUnit_GitHubActions.md index 8b40ab9814..d35c0cba0e 100644 --- a/docs/wiz/Windows_Other_Gui_NUnit_GitHubActions.md +++ b/docs/wiz/Windows_Other_Gui_NUnit_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Other_Gui_NUnit_None.md b/docs/wiz/Windows_Other_Gui_NUnit_None.md index dd257527de..dff71c4a33 100644 --- a/docs/wiz/Windows_Other_Gui_NUnit_None.md +++ b/docs/wiz/Windows_Other_Gui_NUnit_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Other_Gui_xUnit_AppVeyor.md b/docs/wiz/Windows_Other_Gui_xUnit_AppVeyor.md index d77cd2c1a5..102ac616db 100644 --- a/docs/wiz/Windows_Other_Gui_xUnit_AppVeyor.md +++ b/docs/wiz/Windows_Other_Gui_xUnit_AppVeyor.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_Other_Gui_xUnit_AzureDevOps.md b/docs/wiz/Windows_Other_Gui_xUnit_AzureDevOps.md index 17ba55b6fa..895d7c11b2 100644 --- a/docs/wiz/Windows_Other_Gui_xUnit_AzureDevOps.md +++ b/docs/wiz/Windows_Other_Gui_xUnit_AzureDevOps.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_Other_Gui_xUnit_GitHubActions.md b/docs/wiz/Windows_Other_Gui_xUnit_GitHubActions.md index 6f8ffb42c5..a4ff116ce7 100644 --- a/docs/wiz/Windows_Other_Gui_xUnit_GitHubActions.md +++ b/docs/wiz/Windows_Other_Gui_xUnit_GitHubActions.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_Other_Gui_xUnit_None.md b/docs/wiz/Windows_Other_Gui_xUnit_None.md index e1a06845f9..6c8ad5c50b 100644 --- a/docs/wiz/Windows_Other_Gui_xUnit_None.md +++ b/docs/wiz/Windows_Other_Gui_xUnit_None.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_Rider_Gui_MSTest_AppVeyor.md b/docs/wiz/Windows_Rider_Gui_MSTest_AppVeyor.md index b3dbce50a8..5228446d77 100644 --- a/docs/wiz/Windows_Rider_Gui_MSTest_AppVeyor.md +++ b/docs/wiz/Windows_Rider_Gui_MSTest_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Rider_Gui_MSTest_AzureDevOps.md b/docs/wiz/Windows_Rider_Gui_MSTest_AzureDevOps.md index a387403ac7..7f5578b88a 100644 --- a/docs/wiz/Windows_Rider_Gui_MSTest_AzureDevOps.md +++ b/docs/wiz/Windows_Rider_Gui_MSTest_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Rider_Gui_MSTest_GitHubActions.md b/docs/wiz/Windows_Rider_Gui_MSTest_GitHubActions.md index c73e19668b..bb265ee985 100644 --- a/docs/wiz/Windows_Rider_Gui_MSTest_GitHubActions.md +++ b/docs/wiz/Windows_Rider_Gui_MSTest_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Rider_Gui_MSTest_None.md b/docs/wiz/Windows_Rider_Gui_MSTest_None.md index edbf8bddca..bce0595513 100644 --- a/docs/wiz/Windows_Rider_Gui_MSTest_None.md +++ b/docs/wiz/Windows_Rider_Gui_MSTest_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Rider_Gui_NUnit_AppVeyor.md b/docs/wiz/Windows_Rider_Gui_NUnit_AppVeyor.md index 146ed93c01..dca2819aca 100644 --- a/docs/wiz/Windows_Rider_Gui_NUnit_AppVeyor.md +++ b/docs/wiz/Windows_Rider_Gui_NUnit_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Rider_Gui_NUnit_AzureDevOps.md b/docs/wiz/Windows_Rider_Gui_NUnit_AzureDevOps.md index a0e88e9e2f..9e5939debc 100644 --- a/docs/wiz/Windows_Rider_Gui_NUnit_AzureDevOps.md +++ b/docs/wiz/Windows_Rider_Gui_NUnit_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Rider_Gui_NUnit_GitHubActions.md b/docs/wiz/Windows_Rider_Gui_NUnit_GitHubActions.md index 58172d4c80..f9743d08b7 100644 --- a/docs/wiz/Windows_Rider_Gui_NUnit_GitHubActions.md +++ b/docs/wiz/Windows_Rider_Gui_NUnit_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Rider_Gui_NUnit_None.md b/docs/wiz/Windows_Rider_Gui_NUnit_None.md index d2361385e6..d05d8798df 100644 --- a/docs/wiz/Windows_Rider_Gui_NUnit_None.md +++ b/docs/wiz/Windows_Rider_Gui_NUnit_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_Rider_Gui_xUnit_AppVeyor.md b/docs/wiz/Windows_Rider_Gui_xUnit_AppVeyor.md index 5f96bf7cf7..6e6dba157a 100644 --- a/docs/wiz/Windows_Rider_Gui_xUnit_AppVeyor.md +++ b/docs/wiz/Windows_Rider_Gui_xUnit_AppVeyor.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_Rider_Gui_xUnit_AzureDevOps.md b/docs/wiz/Windows_Rider_Gui_xUnit_AzureDevOps.md index 0e389be179..c5d1dea02e 100644 --- a/docs/wiz/Windows_Rider_Gui_xUnit_AzureDevOps.md +++ b/docs/wiz/Windows_Rider_Gui_xUnit_AzureDevOps.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_Rider_Gui_xUnit_GitHubActions.md b/docs/wiz/Windows_Rider_Gui_xUnit_GitHubActions.md index 696d93c583..4f1a397b24 100644 --- a/docs/wiz/Windows_Rider_Gui_xUnit_GitHubActions.md +++ b/docs/wiz/Windows_Rider_Gui_xUnit_GitHubActions.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_Rider_Gui_xUnit_None.md b/docs/wiz/Windows_Rider_Gui_xUnit_None.md index 10b14994b2..dfdfbf4d2c 100644 --- a/docs/wiz/Windows_Rider_Gui_xUnit_None.md +++ b/docs/wiz/Windows_Rider_Gui_xUnit_None.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_AppVeyor.md b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_AppVeyor.md index 0112589ee1..0c722f53f8 100644 --- a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_AppVeyor.md +++ b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_AzureDevOps.md b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_AzureDevOps.md index b62ac496ad..2dea250595 100644 --- a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_AzureDevOps.md +++ b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_GitHubActions.md b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_GitHubActions.md index c18dc3a432..f67d71b514 100644 --- a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_GitHubActions.md +++ b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_None.md b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_None.md index 8ceb793239..e1017639eb 100644 --- a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_None.md +++ b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_MSTest_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_AppVeyor.md b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_AppVeyor.md index bda440948a..178eefb009 100644 --- a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_AppVeyor.md +++ b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_AzureDevOps.md b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_AzureDevOps.md index 8f0d66c6ac..4b2f3dbc66 100644 --- a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_AzureDevOps.md +++ b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_GitHubActions.md b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_GitHubActions.md index 8b75cf0c73..8209febbe2 100644 --- a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_GitHubActions.md +++ b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_None.md b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_None.md index b82af4e265..6f9cfaac28 100644 --- a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_None.md +++ b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_NUnit_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_AppVeyor.md b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_AppVeyor.md index d8df75f0eb..93dc4a978e 100644 --- a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_AppVeyor.md +++ b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_AppVeyor.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_AzureDevOps.md b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_AzureDevOps.md index 69fdef4776..12c66442a9 100644 --- a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_AzureDevOps.md +++ b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_AzureDevOps.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_GitHubActions.md b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_GitHubActions.md index 6e822cf4bc..375c77a0ed 100644 --- a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_GitHubActions.md +++ b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_GitHubActions.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_None.md b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_None.md index 537c16b1ce..08a2d70443 100644 --- a/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_None.md +++ b/docs/wiz/Windows_VisualStudioWithReSharper_Gui_xUnit_None.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_VisualStudio_Gui_MSTest_AppVeyor.md b/docs/wiz/Windows_VisualStudio_Gui_MSTest_AppVeyor.md index 736d3fd59a..846817491a 100644 --- a/docs/wiz/Windows_VisualStudio_Gui_MSTest_AppVeyor.md +++ b/docs/wiz/Windows_VisualStudio_Gui_MSTest_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudio_Gui_MSTest_AzureDevOps.md b/docs/wiz/Windows_VisualStudio_Gui_MSTest_AzureDevOps.md index f0f6869285..1f47a5d9ce 100644 --- a/docs/wiz/Windows_VisualStudio_Gui_MSTest_AzureDevOps.md +++ b/docs/wiz/Windows_VisualStudio_Gui_MSTest_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudio_Gui_MSTest_GitHubActions.md b/docs/wiz/Windows_VisualStudio_Gui_MSTest_GitHubActions.md index 50a19f48fb..8d4a495ad5 100644 --- a/docs/wiz/Windows_VisualStudio_Gui_MSTest_GitHubActions.md +++ b/docs/wiz/Windows_VisualStudio_Gui_MSTest_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudio_Gui_MSTest_None.md b/docs/wiz/Windows_VisualStudio_Gui_MSTest_None.md index 66ef4e9dab..3810c57cda 100644 --- a/docs/wiz/Windows_VisualStudio_Gui_MSTest_None.md +++ b/docs/wiz/Windows_VisualStudio_Gui_MSTest_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudio_Gui_NUnit_AppVeyor.md b/docs/wiz/Windows_VisualStudio_Gui_NUnit_AppVeyor.md index bafccf92d5..2f316a8fb3 100644 --- a/docs/wiz/Windows_VisualStudio_Gui_NUnit_AppVeyor.md +++ b/docs/wiz/Windows_VisualStudio_Gui_NUnit_AppVeyor.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudio_Gui_NUnit_AzureDevOps.md b/docs/wiz/Windows_VisualStudio_Gui_NUnit_AzureDevOps.md index 4775efe279..38ad4e6377 100644 --- a/docs/wiz/Windows_VisualStudio_Gui_NUnit_AzureDevOps.md +++ b/docs/wiz/Windows_VisualStudio_Gui_NUnit_AzureDevOps.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudio_Gui_NUnit_GitHubActions.md b/docs/wiz/Windows_VisualStudio_Gui_NUnit_GitHubActions.md index 0a61e84c63..298546e965 100644 --- a/docs/wiz/Windows_VisualStudio_Gui_NUnit_GitHubActions.md +++ b/docs/wiz/Windows_VisualStudio_Gui_NUnit_GitHubActions.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudio_Gui_NUnit_None.md b/docs/wiz/Windows_VisualStudio_Gui_NUnit_None.md index a02b91dbd9..d8a9af156e 100644 --- a/docs/wiz/Windows_VisualStudio_Gui_NUnit_None.md +++ b/docs/wiz/Windows_VisualStudio_Gui_NUnit_None.md @@ -20,7 +20,7 @@ Add the following packages to the test project: - + ``` snippet source | anchor diff --git a/docs/wiz/Windows_VisualStudio_Gui_xUnit_AppVeyor.md b/docs/wiz/Windows_VisualStudio_Gui_xUnit_AppVeyor.md index b5027c154b..d9e556c6f8 100644 --- a/docs/wiz/Windows_VisualStudio_Gui_xUnit_AppVeyor.md +++ b/docs/wiz/Windows_VisualStudio_Gui_xUnit_AppVeyor.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_VisualStudio_Gui_xUnit_AzureDevOps.md b/docs/wiz/Windows_VisualStudio_Gui_xUnit_AzureDevOps.md index 1ecf985184..9b3413fb52 100644 --- a/docs/wiz/Windows_VisualStudio_Gui_xUnit_AzureDevOps.md +++ b/docs/wiz/Windows_VisualStudio_Gui_xUnit_AzureDevOps.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_VisualStudio_Gui_xUnit_GitHubActions.md b/docs/wiz/Windows_VisualStudio_Gui_xUnit_GitHubActions.md index a9f3055045..a183964ab4 100644 --- a/docs/wiz/Windows_VisualStudio_Gui_xUnit_GitHubActions.md +++ b/docs/wiz/Windows_VisualStudio_Gui_xUnit_GitHubActions.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/docs/wiz/Windows_VisualStudio_Gui_xUnit_None.md b/docs/wiz/Windows_VisualStudio_Gui_xUnit_None.md index 1fe31ad9e6..667277b1c9 100644 --- a/docs/wiz/Windows_VisualStudio_Gui_xUnit_None.md +++ b/docs/wiz/Windows_VisualStudio_Gui_xUnit_None.md @@ -18,7 +18,7 @@ Add the following packages to the test project: ```csproj - + ``` diff --git a/readme.md b/readme.md index 94967badc9..eaeb1f0849 100644 --- a/readme.md +++ b/readme.md @@ -325,6 +325,26 @@ And the test is re run it will fail. The same approach can be used to verify the results and the change to `Sample.Test.verified.txt` is committed to source control along with the change to `ClassBeingTested`. +### Async + +`Verify()` has overloads that accept `Task`, `ValueTask`, and `IAsyncEnumerable`. These are `await`ed before verification. + +There is also an overload that accepts `Func>`, which works well with `async` lambda expressions: + + + +```cs +await Verify( + async () => new + { + Foo = await repo.GetFoo(id), + Bars = await repo.GetBars(id), + }); +``` +snippet source | anchor + + + ### VerifyJson `VerifyJson` performs the following actions @@ -486,7 +506,7 @@ var result = await Verify( }); Assert.Contains("Value To Check", result.Text); ``` -snippet source | anchor +snippet source | anchor If using `Verifier.Throws`, the resulting `Exception` will also be accessible diff --git a/readme.source.md b/readme.source.md index c28e5cc3d1..5726979df5 100644 --- a/readme.source.md +++ b/readme.source.md @@ -180,6 +180,15 @@ And the test is re run it will fail. The same approach can be used to verify the results and the change to `Sample.Test.verified.txt` is committed to source control along with the change to `ClassBeingTested`. +### Async + +`Verify()` has overloads that accept `Task`, `ValueTask`, and `IAsyncEnumerable`. These are `await`ed before verification. + +There is also an overload that accepts `Func>`, which works well with `async` lambda expressions: + +snippet: VerifyFuncOfTaskOfT + + ### VerifyJson `VerifyJson` performs the following actions diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 91d9e94d79..74cea9edb6 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -2,7 +2,7 @@ CS1591;CS0649;xUnit1026;xUnit1013;msb3277;CS0436;CS1573;NU1901;NU1902;NU1903 - 21.1.5 + 21.2.0 enable preview true diff --git a/src/NugetUsage/MSTestNugetUsage/MSTestNugetUsage.csproj b/src/NugetUsage/MSTestNugetUsage/MSTestNugetUsage.csproj index a8421e8072..75c9a8a61c 100644 --- a/src/NugetUsage/MSTestNugetUsage/MSTestNugetUsage.csproj +++ b/src/NugetUsage/MSTestNugetUsage/MSTestNugetUsage.csproj @@ -8,7 +8,7 @@ - + \ No newline at end of file diff --git a/src/NugetUsage/NUnitNugetUsage/NUnitNugetUsage.csproj b/src/NugetUsage/NUnitNugetUsage/NUnitNugetUsage.csproj index f0886efbf5..1830592e9b 100644 --- a/src/NugetUsage/NUnitNugetUsage/NUnitNugetUsage.csproj +++ b/src/NugetUsage/NUnitNugetUsage/NUnitNugetUsage.csproj @@ -8,7 +8,7 @@ - + \ No newline at end of file diff --git a/src/NugetUsage/XunitNugetUsage/XunitNugetUsage.csproj b/src/NugetUsage/XunitNugetUsage/XunitNugetUsage.csproj index 2c008b6ba2..5785ee9229 100644 --- a/src/NugetUsage/XunitNugetUsage/XunitNugetUsage.csproj +++ b/src/NugetUsage/XunitNugetUsage/XunitNugetUsage.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/Verify.ClipboardAccept/Verify.ClipboardAccept.csproj b/src/Verify.ClipboardAccept/Verify.ClipboardAccept.csproj index cb6c17ae65..48f12f8b71 100644 --- a/src/Verify.ClipboardAccept/Verify.ClipboardAccept.csproj +++ b/src/Verify.ClipboardAccept/Verify.ClipboardAccept.csproj @@ -4,7 +4,7 @@ $(TargetFrameworks);net6.0;net7.0;net8.0 - + diff --git a/src/Verify.Expecto/Verifier_Object.cs b/src/Verify.Expecto/Verifier_Object.cs index 58a492af45..b64f098b8d 100644 --- a/src/Verify.Expecto/Verifier_Object.cs +++ b/src/Verify.Expecto/Verifier_Object.cs @@ -4,6 +4,16 @@ namespace VerifyExpecto; public static partial class Verifier { + public static Task Verify( + string name, + Func> target, + VerifySettings? settings = null, + [CallerFilePath] string sourceFile = "") + { + var assembly = Assembly.GetCallingAssembly()!; + return Verify(settings, assembly, sourceFile, name, _ => _.Verify(target())); + } + public static Task Verify( string name, Task target, diff --git a/src/Verify.MSTest/VerifyBase_Object.cs b/src/Verify.MSTest/VerifyBase_Object.cs index 0541a3a154..08cf60c62a 100644 --- a/src/Verify.MSTest/VerifyBase_Object.cs +++ b/src/Verify.MSTest/VerifyBase_Object.cs @@ -2,6 +2,13 @@ public partial class VerifyBase { + [Pure] + public SettingsTask Verify( + Func> target, + VerifySettings? settings = null, + [CallerFilePath] string sourceFile = "") => + Verify(settings, sourceFile, _ => _.Verify(target())); + [Pure] public SettingsTask Verify( Task target, diff --git a/src/Verify.NUnit/Verifier_Object.cs b/src/Verify.NUnit/Verifier_Object.cs index 6b1d8f6311..200c73c3a7 100644 --- a/src/Verify.NUnit/Verifier_Object.cs +++ b/src/Verify.NUnit/Verifier_Object.cs @@ -2,6 +2,13 @@ public static partial class Verifier { + [Pure] + public static SettingsTask Verify( + Func> target, + VerifySettings? settings = null, + [CallerFilePath] string sourceFile = "") => + Verify(settings, sourceFile, _ => _.Verify(target())); + [Pure] public static SettingsTask Verify( Task target, diff --git a/src/Verify.NUnit/VerifyBase_Object.cs b/src/Verify.NUnit/VerifyBase_Object.cs index 1de4dd0dd1..3c9fa711ef 100644 --- a/src/Verify.NUnit/VerifyBase_Object.cs +++ b/src/Verify.NUnit/VerifyBase_Object.cs @@ -2,6 +2,13 @@ public partial class VerifyBase { + [Pure] + public SettingsTask Verify( + Func> target, + VerifySettings? settings = null) + where T : notnull => + Verifier.Verify(target(), settings ?? this.settings, sourceFile); + [Pure] public SettingsTask Verify( Task target, diff --git a/src/Verify.Tests/Snippets/Snippets.cs b/src/Verify.Tests/Snippets/Snippets.cs index 125fc5483e..4dc990f1a4 100644 --- a/src/Verify.Tests/Snippets/Snippets.cs +++ b/src/Verify.Tests/Snippets/Snippets.cs @@ -143,4 +143,31 @@ class Company { public string Name { get; } = null!; } + + // ReSharper disable once UnusedMember.Local + async Task VerifyFuncOfTaskOfT() + { + var repo = new Repo(); + var id = 1; + + #region VerifyFuncOfTaskOfT + + await Verify( + async () => new + { + Foo = await repo.GetFoo(id), + Bars = await repo.GetBars(id), + }); + + #endregion + } + + class Repo + { + // ReSharper disable once MemberCanBeMadeStatic.Local + public Task GetFoo(int id) => throw new NotImplementedException(); + + // ReSharper disable once MemberCanBeMadeStatic.Local + public Task GetBars(int id) => throw new NotImplementedException(); + } } \ No newline at end of file diff --git a/src/Verify.Tests/Tests.FuncOfTaskResult.verified.txt b/src/Verify.Tests/Tests.FuncOfTaskResult.verified.txt new file mode 100644 index 0000000000..3c877c57a0 --- /dev/null +++ b/src/Verify.Tests/Tests.FuncOfTaskResult.verified.txt @@ -0,0 +1 @@ +value \ No newline at end of file diff --git a/src/Verify.Tests/Tests.FuncOfTaskResultAsyncDisposable.verified.txt b/src/Verify.Tests/Tests.FuncOfTaskResultAsyncDisposable.verified.txt new file mode 100644 index 0000000000..f2806f11f4 --- /dev/null +++ b/src/Verify.Tests/Tests.FuncOfTaskResultAsyncDisposable.verified.txt @@ -0,0 +1,4 @@ +{ + Property: Value, + AsyncDisposed: false +} \ No newline at end of file diff --git a/src/Verify.Tests/Tests.FuncOfTaskResultDisposable.verified.txt b/src/Verify.Tests/Tests.FuncOfTaskResultDisposable.verified.txt new file mode 100644 index 0000000000..5b293645ab --- /dev/null +++ b/src/Verify.Tests/Tests.FuncOfTaskResultDisposable.verified.txt @@ -0,0 +1,4 @@ +{ + Property: Value, + Disposed: false +} \ No newline at end of file diff --git a/src/Verify.Tests/Tests.cs b/src/Verify.Tests/Tests.cs index 21068cbfb0..15aa6ffd75 100644 --- a/src/Verify.Tests/Tests.cs +++ b/src/Verify.Tests/Tests.cs @@ -283,6 +283,13 @@ await Verify("value") public Task StringExtension() => Verify("b", "xml"); + [Fact] + public Task FuncOfTaskResult() + { + var target = async () => { await Task.Delay(1); return "value"; }; + return Verify(target); + } + [Fact] public Task TaskResult() { @@ -378,6 +385,15 @@ public async Task AsyncEnumerableAsyncDisposable() Assert.True(target.AsyncDisposed); } + [Fact] + public async Task FuncOfTaskResultAsyncDisposable() + { + var disposableTarget = new AsyncDisposableTarget(); + var target = async () => { await Task.Delay(1); return disposableTarget; }; + await Verify(target); + Assert.True(disposableTarget.AsyncDisposed); + } + [Fact] public async Task TaskResultAsyncDisposable() { @@ -406,6 +422,15 @@ public void Dispose() => throw new(); } + [Fact] + public async Task FuncOfTaskResultDisposable() + { + var disposableTarget = new DisposableTarget(); + var target = async () => { await Task.Delay(1); return disposableTarget; }; + await Verify(target); + Assert.True(disposableTarget.Disposed); + } + [Fact] public async Task TaskResultDisposable() { diff --git a/src/Verify.Xunit/Verifier_Object.cs b/src/Verify.Xunit/Verifier_Object.cs index 93bd7aa332..b7680eb9fb 100644 --- a/src/Verify.Xunit/Verifier_Object.cs +++ b/src/Verify.Xunit/Verifier_Object.cs @@ -2,6 +2,13 @@ public static partial class Verifier { + [Pure] + public static SettingsTask Verify( + Func> target, + VerifySettings? settings = null, + [CallerFilePath] string sourceFile = "") => + Verify(settings, sourceFile, _ => _.Verify(target())); + [Pure] public static SettingsTask Verify( Task target, diff --git a/src/Verify.Xunit/VerifyBase_Object.cs b/src/Verify.Xunit/VerifyBase_Object.cs index 40fa64b754..68fcd56605 100644 --- a/src/Verify.Xunit/VerifyBase_Object.cs +++ b/src/Verify.Xunit/VerifyBase_Object.cs @@ -2,6 +2,13 @@ public partial class VerifyBase { + [Pure] + public SettingsTask Verify( + Func> target, + VerifySettings? settings = null) + where T : notnull => + Verifier.Verify(target(), settings ?? this.settings, sourceFile); + [Pure] public SettingsTask Verify( Task target, diff --git a/src/Verify/Counter_SettingsTask.cs b/src/Verify/Counter_SettingsTask.cs index dd987323c3..3ba136a45c 100644 --- a/src/Verify/Counter_SettingsTask.cs +++ b/src/Verify/Counter_SettingsTask.cs @@ -4,12 +4,14 @@ public partial class SettingsTask { #if NET6_0_OR_GREATER + [Pure] public SettingsTask AddNamedDate(Date value, string name) { CurrentSettings.AddNamedDate(value, name); return this; } + [Pure] public SettingsTask AddNamedTime(Time value, string name) { CurrentSettings.AddNamedTime(value, name); @@ -18,18 +20,21 @@ public SettingsTask AddNamedTime(Time value, string name) #endif + [Pure] public SettingsTask AddNamedDateTime(DateTime value, string name) { CurrentSettings.AddNamedDateTime(value, name); return this; } + [Pure] public SettingsTask AddNamedDateTimeOffset(DateTimeOffset value, string name) { CurrentSettings.AddNamedDateTimeOffset(value, name); return this; } + [Pure] public SettingsTask AddNamedGuid(Guid value, string name) { CurrentSettings.AddNamedGuid(value, name); diff --git a/src/Verify/Extensions.cs b/src/Verify/Extensions.cs index d4944670f6..a16a6ba53c 100644 --- a/src/Verify/Extensions.cs +++ b/src/Verify/Extensions.cs @@ -199,7 +199,8 @@ public static int Count(this StringBuilder builder, char ch) var frameworkName = new FrameworkName(attribute.FrameworkName); var name = Namer.GetSimpleFrameworkName(frameworkName); - return new (name, $"{name}{frameworkName.Version.Major}_{frameworkName.Version.Minor}"); + var version = frameworkName.Version; + return new (name, $"{name}{version.Major}_{version.Minor}"); } public static bool IsException(this Type type) => diff --git a/src/Verify/GlobalUsings.cs b/src/Verify/GlobalUsings.cs index b50e2f4258..fb5599a42d 100644 --- a/src/Verify/GlobalUsings.cs +++ b/src/Verify/GlobalUsings.cs @@ -1,5 +1,6 @@ // Global using directives +global using System.Diagnostics.Contracts; global using VerifyTests; global using Argon; global using DiffEngine; diff --git a/src/Verify/SettingsTask.cs b/src/Verify/SettingsTask.cs index a102926f57..e687c61886 100644 --- a/src/Verify/SettingsTask.cs +++ b/src/Verify/SettingsTask.cs @@ -6,6 +6,7 @@ public partial class SettingsTask Func> buildTask; Task? task; + [Pure] public SettingsTask(VerifySettings? settings, Func> buildTask) { if (settings is not null) @@ -16,6 +17,7 @@ public SettingsTask(VerifySettings? settings, Func action) { CurrentSettings.AddExtraSettings(action); @@ -25,6 +27,7 @@ public SettingsTask AddExtraSettings(Action action) /// /// Append a key-value pair to the serialized target. /// + [Pure] public SettingsTask AppendValue(string name, object data) { CurrentSettings.AppendValue(name, data); @@ -34,6 +37,7 @@ public SettingsTask AppendValue(string name, object data) /// /// Append key-value pairs to the serialized target. /// + [Pure] public SettingsTask AppendValues(IEnumerable> values) { CurrentSettings.AppendValues(values); @@ -43,6 +47,7 @@ public SettingsTask AppendValues(IEnumerable> value /// /// Append key-value pairs to the serialized target. /// + [Pure] public SettingsTask AppendValues(params KeyValuePair[] values) { CurrentSettings.AppendValues(values); @@ -53,6 +58,7 @@ public SettingsTask AppendValues(params KeyValuePair[] values) /// Ignore parameters in 'verified' filename resulting in the same verified file for each testcase. /// Note that the 'received' files contain the parameters. /// + [Pure] public SettingsTask IgnoreParametersForVerified(params object?[] parameters) { CurrentSettings.IgnoreParametersForVerified(parameters); @@ -65,30 +71,35 @@ public SettingsTask IgnoreParametersForVerified(params object?[] parameters) /// When this is not possible, an exception will be thrown instructing the use of /// Not compatible with . /// + [Pure] public SettingsTask UseParameters(params object?[] parameters) { CurrentSettings.UseParameters(parameters); return this; } + [Pure] public SettingsTask UseParameters(T parameter) { CurrentSettings.UseParameters(parameter); return this; } + [Pure] public SettingsTask UseParameters(T[] parameters) { CurrentSettings.UseParameters(parameters); return this; } + [Pure] public SettingsTask UseStreamComparer(StreamCompare compare) { CurrentSettings.UseStreamComparer(compare); return this; } + [Pure] public SettingsTask UseStringComparer(StringCompare compare) { CurrentSettings.UseStringComparer(compare); @@ -98,6 +109,7 @@ public SettingsTask UseStringComparer(StringCompare compare) /// /// Disable using a diff toll for this test /// + [Pure] public SettingsTask DisableDiff() { CurrentSettings.DisableDiff(); @@ -108,6 +120,7 @@ public SettingsTask DisableDiff() /// Use the current runtime to make the test results unique. /// Used when a test produces different results based on runtime. /// + [Pure] public SettingsTask UniqueForRuntime() { CurrentSettings.UniqueForRuntime(); @@ -118,6 +131,7 @@ public SettingsTask UniqueForRuntime() /// Use the current test assembly TargetFrameworkAttribute to make the test results unique. /// Used when a test produces different results based on TargetFramework. /// + [Pure] public SettingsTask UniqueForTargetFramework() { CurrentSettings.UniqueForTargetFramework(); @@ -128,6 +142,7 @@ public SettingsTask UniqueForTargetFramework() /// Use the current test assembly TargetFrameworkAttribute name and version to make the test results unique. /// Used when a test produces different results based on TargetFramework and TargetFramework version. /// + [Pure] public SettingsTask UniqueForTargetFrameworkAndVersion() { CurrentSettings.UniqueForTargetFrameworkAndVersion(); @@ -138,6 +153,7 @@ public SettingsTask UniqueForTargetFrameworkAndVersion() /// Use the current test assembly configuration (debug/release) to make the test results unique. /// Used when a test produces different results based on assembly configuration. /// + [Pure] public SettingsTask UniqueForAssemblyConfiguration() { CurrentSettings.UniqueForAssemblyConfiguration(); @@ -148,6 +164,7 @@ public SettingsTask UniqueForAssemblyConfiguration() /// Use TargetFrameworkAttribute to make the test results unique. /// Used when a test produces different results based on TargetFramework. /// + [Pure] public SettingsTask UniqueForTargetFramework(Assembly assembly) { CurrentSettings.UniqueForTargetFramework(assembly); @@ -158,6 +175,7 @@ public SettingsTask UniqueForTargetFramework(Assembly assembly) /// Use the TargetFrameworkAttribute name and version to make the test results unique. /// Used when a test produces different results based on TargetFramework and TargetFramework version. /// + [Pure] public SettingsTask UniqueForTargetFrameworkAndVersion(Assembly assembly) { CurrentSettings.UniqueForTargetFrameworkAndVersion(assembly); @@ -168,6 +186,7 @@ public SettingsTask UniqueForTargetFrameworkAndVersion(Assembly assembly) /// Use the configuration (debug/release) to make the test results unique. /// Used when a test produces different results based on assembly configuration. /// + [Pure] public SettingsTask UniqueForAssemblyConfiguration(Assembly assembly) { CurrentSettings.UniqueForAssemblyConfiguration(assembly); @@ -177,6 +196,7 @@ public SettingsTask UniqueForAssemblyConfiguration(Assembly assembly) /// /// Allow multiple tests to map to the same snapshot file prefix. /// + [Pure] public SettingsTask DisableRequireUniquePrefix() { CurrentSettings.DisableRequireUniquePrefix(); @@ -188,6 +208,7 @@ public SettingsTask DisableRequireUniquePrefix() /// Where the file format is `{CurrentDirectory}/{TestClassName}.{TestMethodName}_{Parameters}.{UniqueFor1}.{UniqueFor2}.{UniqueForX}.verified.{extension}`. /// /// Not compatible with . + [Pure] public SettingsTask UseMethodName(string name) { CurrentSettings.UseMethodName(name); @@ -197,6 +218,7 @@ public SettingsTask UseMethodName(string name) /// /// Use a custom directory for the test results. /// + [Pure] public SettingsTask UseDirectory(string directory) { CurrentSettings.UseDirectory(directory); @@ -209,6 +231,7 @@ public SettingsTask UseDirectory(string directory) /// Where the new file format is `{CurrentDirectory}/{FileName}_{UniqueFor1}_{UniqueFor2}_{UniqueForX}.verified.{extension}`. /// /// Not compatible with , , or . + [Pure] public SettingsTask UseFileName(string fileName) { CurrentSettings.UseFileName(fileName); @@ -219,6 +242,7 @@ public SettingsTask UseFileName(string fileName) /// Use a directory for the test results. /// Where the file format is `{CurrentDirectory}/{TestClassName}.{TestMethodName}_{Parameters}_{UniqueFor1}_{UniqueFor2}_{UniqueForX}/{targetName}.verified.{extension}`. /// + [Pure] public SettingsTask UseUniqueDirectory() { CurrentSettings.UseUniqueDirectory(); @@ -230,6 +254,7 @@ public SettingsTask UseUniqueDirectory() /// Where the file format is `{CurrentDirectory}/{TestClassName}.{TestMethodName}_{Parameters}.{UniqueFor1}.{UniqueFor2}.{UniqueForX}.verified.{extension}`. /// /// Not compatible with . + [Pure] public SettingsTask UseTypeName(string name) { CurrentSettings.UseTypeName(name); @@ -240,6 +265,7 @@ public SettingsTask UseTypeName(string name) /// Use the current runtime and runtime version to make the test results unique. /// Used when a test produces different results based on runtime and runtime version. /// + [Pure] public SettingsTask UniqueForRuntimeAndVersion() { CurrentSettings.UniqueForRuntimeAndVersion(); @@ -252,6 +278,7 @@ public SettingsTask UniqueForRuntimeAndVersion() /// Used to get a deterministic file name while avoiding long paths. /// Combines and . /// + [Pure] public SettingsTask UseHashedParameters(params object?[] parameters) { CurrentSettings.UseHashedParameters(parameters); @@ -262,6 +289,7 @@ public SettingsTask UseHashedParameters(params object?[] parameters) /// Hash parameters together and pass to . /// Used to get a deterministic file name while avoiding long paths. /// + [Pure] public SettingsTask HashParameters() { CurrentSettings.HashParameters(); @@ -274,6 +302,7 @@ public SettingsTask HashParameters() /// Use the current processor architecture (x86/x64/arm/arm64) to make the test results unique. /// Used when a test produces different results based on processor architecture. /// + [Pure] public SettingsTask UniqueForArchitecture() { CurrentSettings.UniqueForArchitecture(); @@ -284,12 +313,14 @@ public SettingsTask UniqueForArchitecture() /// Use the operating system family (Linux/Windows/OSX) to make the test results unique. /// Used when a test produces different results based on operating system family. /// + [Pure] public SettingsTask UniqueForOSPlatform() { CurrentSettings.UniqueForOSPlatform(); return this; } + [Pure] public SettingsTask IgnoreStackTrace() { CurrentSettings.IgnoreStackTrace(); @@ -299,6 +330,7 @@ public SettingsTask IgnoreStackTrace() /// /// Automatically accept the results of the current test. /// + [Pure] public SettingsTask AutoVerify(bool includeBuildServer = true) { CurrentSettings.AutoVerify(includeBuildServer); @@ -310,6 +342,7 @@ public SettingsTask AutoVerify(bool includeBuildServer = true) /// Not compatible with . /// Where the file format is `{CurrentDirectory}/{TestClassName}.{TestMethodName}_{Parameters}_{UniqueFor1}_{UniqueFor2}_{UniqueForX}.verified.{extension}`. /// + [Pure] public SettingsTask UseTextForParameters(string parametersText) { CurrentSettings.UseTextForParameters(parametersText); @@ -320,6 +353,7 @@ public SettingsTask UseTextForParameters(string parametersText) /// Use the current runtime to make the test results unique. /// Used when a test produces different results based on runtime. /// + [Pure] public SettingsTask UseSplitModeForUniqueDirectory() { CurrentSettings.UseSplitModeForUniqueDirectory(); @@ -330,6 +364,7 @@ public SettingsTask UseSplitModeForUniqueDirectory() /// Dont use the current runtime to make the test results unique. /// Overrides . /// + [Pure] public SettingsTask DontUseSplitModeForUniqueDirectory() { CurrentSettings.DontUseSplitModeForUniqueDirectory(); @@ -338,15 +373,19 @@ public SettingsTask DontUseSplitModeForUniqueDirectory() public VerifySettings CurrentSettings => settings ??= new(); + [Pure] public Task ToTask() => task ??= buildTask(CurrentSettings); + [Pure] public ConfiguredTaskAwaitable ConfigureAwait(bool continueOnCapturedContext) => ToTask().ConfigureAwait(continueOnCapturedContext); + [Pure] public TaskAwaiter GetAwaiter() => ToTask().GetAwaiter(); + [Pure] public static implicit operator Task(SettingsTask settingsTask) => settingsTask.ToTask(); } \ No newline at end of file diff --git a/src/Verify/SettingsTask_Scrubbing.cs b/src/Verify/SettingsTask_Scrubbing.cs index 874a50490a..1ed7d82dc5 100644 --- a/src/Verify/SettingsTask_Scrubbing.cs +++ b/src/Verify/SettingsTask_Scrubbing.cs @@ -5,6 +5,7 @@ public partial class SettingsTask /// /// Modify the resulting test content using custom code. /// + [Pure] public SettingsTask AddScrubber(Action scrubber, ScrubberLocation location = ScrubberLocation.First) { CurrentSettings.AddScrubber(scrubber, location); @@ -14,6 +15,7 @@ public SettingsTask AddScrubber(Action scrubber, ScrubberLocation /// /// Modify the resulting test content using custom code. /// + [Pure] public SettingsTask AddScrubber(string extension, Action scrubber, ScrubberLocation location = ScrubberLocation.First) { CurrentSettings.AddScrubber(extension, scrubber, location); @@ -23,6 +25,7 @@ public SettingsTask AddScrubber(string extension, Action scrubber /// /// Replace inline s with a placeholder. /// + [Pure] public SettingsTask ScrubInlineGuids(ScrubberLocation location = ScrubberLocation.First) { CurrentSettings.ScrubInlineGuids(location); @@ -32,6 +35,7 @@ public SettingsTask ScrubInlineGuids(ScrubberLocation location = ScrubberLocatio /// /// Remove the from the test results. /// + [Pure] public SettingsTask ScrubMachineName(ScrubberLocation location = ScrubberLocation.First) { CurrentSettings.ScrubMachineName(location); @@ -41,6 +45,7 @@ public SettingsTask ScrubMachineName(ScrubberLocation location = ScrubberLocatio /// /// Remove the from the test results. /// + [Pure] public SettingsTask ScrubUserName(ScrubberLocation location = ScrubberLocation.First) { CurrentSettings.ScrubUserName(location); @@ -50,6 +55,7 @@ public SettingsTask ScrubUserName(ScrubberLocation location = ScrubberLocation.F /// /// Remove any lines containing any of from the test results. /// + [Pure] public SettingsTask ScrubLinesContaining(StringComparison comparison, params string[] stringToMatch) { CurrentSettings.ScrubLinesContaining(comparison, stringToMatch); @@ -59,6 +65,7 @@ public SettingsTask ScrubLinesContaining(StringComparison comparison, params str /// /// Remove any lines containing any of from the test results. /// + [Pure] public SettingsTask ScrubLinesContaining(StringComparison comparison, ScrubberLocation location = ScrubberLocation.First, params string[] stringToMatch) { CurrentSettings.ScrubLinesContaining(comparison, location, stringToMatch); @@ -68,6 +75,7 @@ public SettingsTask ScrubLinesContaining(StringComparison comparison, ScrubberLo /// /// Remove any lines matching from the test results. /// + [Pure] public SettingsTask ScrubLines(Func removeLine, ScrubberLocation location = ScrubberLocation.First) { CurrentSettings.ScrubLines(removeLine, location); @@ -78,6 +86,7 @@ public SettingsTask ScrubLines(Func removeLine, ScrubberLocation l /// Scrub lines with an optional replace. /// can return the input to ignore the line, or return a different string to replace it. /// + [Pure] public SettingsTask ScrubLinesWithReplace(Func replaceLine, ScrubberLocation location = ScrubberLocation.First) { CurrentSettings.ScrubLinesWithReplace(replaceLine, location); @@ -87,6 +96,7 @@ public SettingsTask ScrubLinesWithReplace(Func replaceLine, Scr /// /// Remove any lines containing only whitespace from the test results. /// + [Pure] public SettingsTask ScrubEmptyLines(ScrubberLocation location = ScrubberLocation.First) { CurrentSettings.ScrubEmptyLines(location); @@ -96,6 +106,7 @@ public SettingsTask ScrubEmptyLines(ScrubberLocation location = ScrubberLocation /// /// Remove any lines containing any of from the test results. /// + [Pure] public SettingsTask ScrubLinesContaining(params string[] stringToMatch) { CurrentSettings.ScrubLinesContaining(stringToMatch); @@ -105,6 +116,7 @@ public SettingsTask ScrubLinesContaining(params string[] stringToMatch) /// /// Remove any lines containing any of from the test results. /// + [Pure] public SettingsTask ScrubLinesContaining(ScrubberLocation location = ScrubberLocation.First, params string[] stringToMatch) { CurrentSettings.ScrubLinesContaining(location, stringToMatch); diff --git a/src/Verify/SettingsTask_SerializationMaps.cs b/src/Verify/SettingsTask_SerializationMaps.cs index e28c5a3828..2cbda8de09 100644 --- a/src/Verify/SettingsTask_SerializationMaps.cs +++ b/src/Verify/SettingsTask_SerializationMaps.cs @@ -2,36 +2,42 @@ public partial class SettingsTask { + [Pure] public SettingsTask DontScrubGuids() { CurrentSettings.DontScrubGuids(); return this; } + [Pure] public SettingsTask DontScrubDateTimes() { CurrentSettings.DontScrubDateTimes(); return this; } + [Pure] public SettingsTask DontSortDictionaries() { CurrentSettings.DontSortDictionaries(); return this; } + [Pure] public SettingsTask IncludeObsoletes() { CurrentSettings.IncludeObsoletes(); return this; } + [Pure] public SettingsTask DontIgnoreEmptyCollections() { CurrentSettings.DontIgnoreEmptyCollections(); return this; } + [Pure] public SettingsTask IgnoreMembers(params Expression>[] expressions) where T : notnull { @@ -39,6 +45,7 @@ public SettingsTask IgnoreMembers(params Expression>[] expre return this; } + [Pure] public SettingsTask ScrubMembers(params Expression>[] expressions) where T : notnull { @@ -46,6 +53,7 @@ public SettingsTask ScrubMembers(params Expression>[] expres return this; } + [Pure] public SettingsTask IgnoreMember(Expression> expression) where T : notnull { @@ -53,6 +61,7 @@ public SettingsTask IgnoreMember(Expression> expression) return this; } + [Pure] public SettingsTask ScrubMember(Expression> expression) where T : notnull { @@ -60,6 +69,7 @@ public SettingsTask ScrubMember(Expression> expression) return this; } + [Pure] public SettingsTask IgnoreMembers(params string[] names) where T : notnull { @@ -67,6 +77,7 @@ public SettingsTask IgnoreMembers(params string[] names) return this; } + [Pure] public SettingsTask ScrubMembers(params string[] names) where T : notnull { @@ -74,6 +85,7 @@ public SettingsTask ScrubMembers(params string[] names) return this; } + [Pure] public SettingsTask IgnoreMember(string name) where T : notnull { @@ -81,6 +93,7 @@ public SettingsTask IgnoreMember(string name) return this; } + [Pure] public SettingsTask ScrubMember(string name) where T : notnull { @@ -88,54 +101,63 @@ public SettingsTask ScrubMember(string name) return this; } + [Pure] public SettingsTask IgnoreMembers(Type declaringType, params string[] names) { CurrentSettings.IgnoreMembers(declaringType, names); return this; } + [Pure] public SettingsTask ScrubMembers(Type declaringType, params string[] names) { CurrentSettings.ScrubMembers(declaringType, names); return this; } + [Pure] public SettingsTask IgnoreMember(Type declaringType, string name) { CurrentSettings.IgnoreMember(declaringType, name); return this; } + [Pure] public SettingsTask ScrubMember(Type declaringType, string name) { CurrentSettings.ScrubMember(declaringType, name); return this; } + [Pure] public SettingsTask IgnoreMember(string name) { CurrentSettings.IgnoreMember(name); return this; } + [Pure] public SettingsTask ScrubMember(string name) { CurrentSettings.ScrubMember(name); return this; } + [Pure] public SettingsTask IgnoreMembers(params string[] names) { CurrentSettings.IgnoreMembers(names); return this; } + [Pure] public SettingsTask ScrubMembers(params string[] names) { CurrentSettings.ScrubMembers(names); return this; } + [Pure] public SettingsTask IgnoreInstance(Func shouldIgnore) where T : notnull { @@ -143,6 +165,7 @@ public SettingsTask IgnoreInstance(Func shouldIgnore) return this; } + [Pure] public SettingsTask ScrubInstance(Func shouldScrub) where T : notnull { @@ -150,18 +173,21 @@ public SettingsTask ScrubInstance(Func shouldScrub) return this; } + [Pure] public SettingsTask IgnoreInstance(Type type, ShouldIgnore shouldIgnore) { CurrentSettings.IgnoreInstance(type, shouldIgnore); return this; } + [Pure] public SettingsTask ScrubInstance(Type type, ShouldScrub shouldScrub) { CurrentSettings.ScrubInstance(type, shouldScrub); return this; } + [Pure] public SettingsTask IgnoreMembersWithType() where T : notnull { @@ -169,6 +195,7 @@ public SettingsTask IgnoreMembersWithType() return this; } + [Pure] public SettingsTask ScrubMembersWithType() where T : notnull { @@ -176,18 +203,21 @@ public SettingsTask ScrubMembersWithType() return this; } + [Pure] public SettingsTask IgnoreMembersWithType(Type type) { CurrentSettings.IgnoreMembersWithType(type); return this; } + [Pure] public SettingsTask ScrubMembersWithType(Type type) { CurrentSettings.ScrubMembersWithType(type); return this; } + [Pure] public SettingsTask IgnoreMembersThatThrow() where T : Exception { @@ -195,12 +225,14 @@ public SettingsTask IgnoreMembersThatThrow() return this; } + [Pure] public SettingsTask IgnoreMembersThatThrow(Func item) { CurrentSettings.IgnoreMembersThatThrow(item); return this; } + [Pure] public SettingsTask IgnoreMembersThatThrow(Func item) where T : Exception { diff --git a/src/Verify/Splitters/Settings_FileAppender.cs b/src/Verify/Splitters/Settings_FileAppender.cs index 024f779de6..8f435c0ea4 100644 --- a/src/Verify/Splitters/Settings_FileAppender.cs +++ b/src/Verify/Splitters/Settings_FileAppender.cs @@ -76,42 +76,49 @@ public void AppendFile(Stream stream, string extension = "txt", string? name = n public partial class SettingsTask { + [Pure] public SettingsTask AppendContentAsFile(StringBuilder content, string extension = "txt", string? name = null) { CurrentSettings.AppendContentAsFile(content, extension, name); return this; } + [Pure] public SettingsTask AppendContentAsFile(string content, string extension = "txt", string? name = null) { CurrentSettings.AppendContentAsFile(content, extension, name); return this; } + [Pure] public SettingsTask AppendContentAsFile(byte[] content, string extension = "txt", string? name = null) { CurrentSettings.AppendContentAsFile(content, extension, name); return this; } + [Pure] public SettingsTask AppendFile(FileStream stream, string? name = null) { CurrentSettings.AppendFile(stream, name); return this; } + [Pure] public SettingsTask AppendFile(Stream stream, string extension = "txt", string? name = null) { CurrentSettings.AppendFile(stream, extension, name); return this; } + [Pure] public SettingsTask AppendFile(string file, string? name = null) { CurrentSettings.AppendFile(file, name); return this; } + [Pure] public SettingsTask AppendFile(FileInfo file, string? name = null) { CurrentSettings.AppendFile(file, name); diff --git a/src/Verify/Verify.csproj b/src/Verify/Verify.csproj index bac531281c..ccb649a54a 100644 --- a/src/Verify/Verify.csproj +++ b/src/Verify/Verify.csproj @@ -12,7 +12,7 @@ - +