Skip to content

Commit

Permalink
chore(deps): update dependency nunit to v4 (#1058)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency nunit to v4

* chore(deps): update dependency snapshooter.nunit to v0.14.0

* chore: fix tests for .NET 4.6.2

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Florian Greinacher <[email protected]>
  • Loading branch information
renovate[bot] and fgreinacher authored Jan 8, 2024
1 parent 30b006c commit 83936e6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Moq" Version="4.20.70" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit" Version="4.0.1" />
<PackageReference Include="NUnit.Analyzers" Version="3.10.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,25 @@
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Moq" Version="4.20.70" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit" Version="4.0.1" />
<PackageReference Include="NUnit.Analyzers" Version="3.10.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Snapshooter.NUnit" Version="0.13.0" />
<PackageReference Include="Snapshooter.NUnit" Version="0.14.0" />
</ItemGroup>
<PropertyGroup>
<!--
Allow deprecated binary formatter functionality on .NET 8 so that we can test it
-->
<EnableUnsafeBinaryFormatterSerialization Condition="'$(TargetFramework)' == 'net8.0'">true</EnableUnsafeBinaryFormatterSerialization>
</PropertyGroup>
<!--
Snapshooter is currently broken when referencing NUnit 4 from a .NET 4.6.2 project.
The following blocks work around this by referencing NUnit 3 in that case.
-->
<PropertyGroup>
<_Net462NUnitVersion>3.14.0</_Net462NUnitVersion>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<PackageReference Update="NUnit" Version="$(_Net462NUnitVersion)" />
</ItemGroup>
</Project>

0 comments on commit 83936e6

Please sign in to comment.