Skip to content

Commit

Permalink
Upgrade NUnit (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbaldoumas authored Jul 2, 2024
1 parent 5c2cb0b commit c7a2e08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit" Version="4.1.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void SetUp()
public async Task Exception_Thrown_When_Invalid_InputPolicyResult_Is_Returned_A()
{
// arrange
Assert.IsFalse(Enum.IsDefined(typeof(InputPolicyResult), int.MaxValue));
Assert.That(Enum.IsDefined(typeof(InputPolicyResult), int.MaxValue), Is.False);
const InputPolicyResult badInputPolicyResult = (InputPolicyResult)int.MaxValue;

_mockInputPolicyA.ShouldProcess(Arg.Any<int>()).Returns(InputPolicyResult.Continue);
Expand Down Expand Up @@ -106,7 +106,7 @@ public async Task Exception_Thrown_When_Invalid_InputPolicyResult_Is_Returned_A(
public async Task Exception_Thrown_When_Invalid_InputPolicyResult_Is_Returned_B()
{
// arrange
Assert.IsFalse(Enum.IsDefined(typeof(InputPolicyResult), int.MaxValue));
Assert.That(Enum.IsDefined(typeof(InputPolicyResult), int.MaxValue), Is.False);
const InputPolicyResult badInputPolicyResult = (InputPolicyResult)int.MaxValue;

_mockInputPolicyA.ShouldProcess(Arg.Any<int>()).Returns(badInputPolicyResult);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void SetUp()
[Test]
public void Exception_Thrown_When_Invalid_InputPolicyResult_Is_Returned()
{
Assert.IsFalse(Enum.IsDefined(typeof(InputPolicyResult), int.MaxValue));
Assert.That(Enum.IsDefined(typeof(InputPolicyResult), int.MaxValue), Is.False);
const InputPolicyResult badInputPolicyResult = (InputPolicyResult)int.MaxValue;

_mockInputPolicyA.ShouldProcess(Item).Returns(InputPolicyResult.Continue);
Expand Down

0 comments on commit c7a2e08

Please sign in to comment.