Skip to content

Commit

Permalink
refs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored and patriksvensson committed Jan 17, 2024
1 parent 030622b commit 95654e1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static class VerifyConfig
}
}
```
<sup><a href='/src/Spectre.Verify.Extensions.Tests/ExpectationTests.cs#L42-L51' title='Snippet source file'>snippet source</a> | <a href='#snippet-initialize' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Spectre.Verify.Extensions.Tests/ExpectationTests.cs#L40-L49' title='Snippet source file'>snippet source</a> | <a href='#snippet-initialize' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Then the following test
Expand All @@ -40,7 +40,6 @@ public static class ExpectationTests
{
public static class MyOtherTestClass
{
[UsesVerify]
[ExpectationPath("Bar/Qux")]
public class MyOtherOtherTestClass
{
Expand All @@ -53,7 +52,6 @@ public static class ExpectationTests
}
}

[UsesVerify]
[ExpectationPath("Baz")]
public class YetAnotherTestClass
{
Expand All @@ -66,7 +64,7 @@ public static class ExpectationTests
}
}
```
<sup><a href='/src/Spectre.Verify.Extensions.Tests/ExpectationTests.cs#L9-L40' title='Snippet source file'>snippet source</a> | <a href='#snippet-usage' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Spectre.Verify.Extensions.Tests/ExpectationTests.cs#L9-L38' title='Snippet source file'>snippet source</a> | <a href='#snippet-usage' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Will produce the following directory structure:
Expand Down
2 changes: 0 additions & 2 deletions src/Spectre.Verify.Extensions.Tests/ExpectationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public static class ExpectationTests
{
public static class MyOtherTestClass
{
[UsesVerify]
[ExpectationPath("Bar/Qux")]
public class MyOtherOtherTestClass
{
Expand All @@ -25,7 +24,6 @@ public async Task Test1()
}
}

[UsesVerify]
[ExpectationPath("Baz")]
public class YetAnotherTestClass
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Verify" Version="22.3.0" />
<PackageReference Include="Verify.Xunit" Version="22.3.0" />
<PackageReference Include="MarkdownSnippets.MsBuild" Version="25.1.0">
<PackageReference Include="Verify" Version="23.0.0" />
<PackageReference Include="Verify.Xunit" Version="23.0.0" />
<PackageReference Include="MarkdownSnippets.MsBuild" Version="26.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Update="Roslynator.Analyzers" Version="4.9.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Verify" Version="22.3.0" />
<PackageReference Include="Verify.Xunit" Version="22.3.0" />
<PackageReference Include="Verify" Version="23.0.0" />
<PackageReference Include="Verify.Xunit" Version="23.0.0" />
<PackageReference Update="Roslynator.Analyzers" Version="4.9.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 95654e1

Please sign in to comment.