From 95654e14ee2a0abbe7e768be66ea284a68aa50d0 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Wed, 17 Jan 2024 21:47:48 +1100 Subject: [PATCH] refs --- README.md | 6 ++---- .../ExpectationTests.cs | 2 -- .../Spectre.Verify.Extensions.Tests.csproj | 11 ++++++----- .../Spectre.Verify.Extensions.csproj | 5 +++-- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e47adc6..6d72478 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ public static class VerifyConfig } } ``` -snippet source | anchor +snippet source | anchor Then the following test @@ -40,7 +40,6 @@ public static class ExpectationTests { public static class MyOtherTestClass { - [UsesVerify] [ExpectationPath("Bar/Qux")] public class MyOtherOtherTestClass { @@ -53,7 +52,6 @@ public static class ExpectationTests } } - [UsesVerify] [ExpectationPath("Baz")] public class YetAnotherTestClass { @@ -66,7 +64,7 @@ public static class ExpectationTests } } ``` -snippet source | anchor +snippet source | anchor Will produce the following directory structure: diff --git a/src/Spectre.Verify.Extensions.Tests/ExpectationTests.cs b/src/Spectre.Verify.Extensions.Tests/ExpectationTests.cs index 50fe94a..d9e965a 100644 --- a/src/Spectre.Verify.Extensions.Tests/ExpectationTests.cs +++ b/src/Spectre.Verify.Extensions.Tests/ExpectationTests.cs @@ -12,7 +12,6 @@ public static class ExpectationTests { public static class MyOtherTestClass { - [UsesVerify] [ExpectationPath("Bar/Qux")] public class MyOtherOtherTestClass { @@ -25,7 +24,6 @@ public async Task Test1() } } - [UsesVerify] [ExpectationPath("Baz")] public class YetAnotherTestClass { diff --git a/src/Spectre.Verify.Extensions.Tests/Spectre.Verify.Extensions.Tests.csproj b/src/Spectre.Verify.Extensions.Tests/Spectre.Verify.Extensions.Tests.csproj index 814b058..e47fff7 100644 --- a/src/Spectre.Verify.Extensions.Tests/Spectre.Verify.Extensions.Tests.csproj +++ b/src/Spectre.Verify.Extensions.Tests/Spectre.Verify.Extensions.Tests.csproj @@ -8,17 +8,18 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all + diff --git a/src/Spectre.Verify.Extensions/Spectre.Verify.Extensions.csproj b/src/Spectre.Verify.Extensions/Spectre.Verify.Extensions.csproj index 0ee684d..190ffa6 100644 --- a/src/Spectre.Verify.Extensions/Spectre.Verify.Extensions.csproj +++ b/src/Spectre.Verify.Extensions/Spectre.Verify.Extensions.csproj @@ -5,8 +5,9 @@ - - + + +