Skip to content

Commit 6c2e2aa

Browse files
committed
feat: support NUnit v4
1 parent 82994e4 commit 6c2e2aa

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

project/Snapper.Nunit/EqualToSnapshotConstraint.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ public class EqualToSnapshotConstraint : Constraint
88
private readonly string? _childSnapshotName;
99
private readonly SnapshotSettings? _snapshotSettings;
1010

11+
public override string Description { get => DisplayName; }
12+
1113
public EqualToSnapshotConstraint(string? childSnapshotName = null, SnapshotSettings? snapshotSettings = null)
1214
{
1315
_childSnapshotName = childSnapshotName;

project/Tests/Snapper.Nunit.Tests/Snapper.Nunit.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
</PropertyGroup>
99
<ItemGroup>
1010
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.1" />
11-
<PackageReference Include="NUnit" Version="3.13.3" />
12-
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
11+
<PackageReference Include="NUnit" Version="4.0.1" />
12+
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

project/Tests/Snapper.TestFrameworkSupport.Tests/Snapper.TestFrameworkSupport.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<PrivateAssets>all</PrivateAssets>
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1616
</PackageReference>
17-
<PackageReference Include="NUnit" Version="3.13.3" />
18-
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
17+
<PackageReference Include="NUnit" Version="4.0.1" />
18+
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
1919
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
2020
</ItemGroup>
2121
<ItemGroup>

0 commit comments

Comments
 (0)