Skip to content

Commit ada29b2

Browse files
committed
chore: fix tests for .NET 4.6.2
1 parent bc4723f commit ada29b2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/TestableIO.System.IO.Abstractions.Wrappers.Tests/TestableIO.System.IO.Abstractions.Wrappers.Tests.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,14 @@
3030
-->
3131
<EnableUnsafeBinaryFormatterSerialization Condition="'$(TargetFramework)' == 'net8.0'">true</EnableUnsafeBinaryFormatterSerialization>
3232
</PropertyGroup>
33+
<!--
34+
Snapshooter is currently broken when referencing NUnit 4 from a .NET 4.6.2 project.
35+
The following blocks work around this by referencing NUnit 3 in that case.
36+
-->
37+
<PropertyGroup>
38+
<_Net462NUnitVersion>3.14.0</_Net462NUnitVersion>
39+
</PropertyGroup>
40+
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
41+
<PackageReference Update="NUnit" Version="$(_Net462NUnitVersion)" />
42+
</ItemGroup>
3343
</Project>

0 commit comments

Comments
 (0)