From c7a2e0854d2858382bb37517cf52e471030d2ff7 Mon Sep 17 00:00:00 2001
From: Will Baldoumas <45316999+wbaldoumas@users.noreply.github.com>
Date: Tue, 2 Jul 2024 13:53:57 -0700
Subject: [PATCH] Upgrade NUnit (#106)
---
.../Atrea.PolicyEngine.Tests/Atrea.PolicyEngine.Tests.csproj | 2 +-
.../Engines/AsyncPolicyEngineTests.cs | 4 ++--
tests/Atrea.PolicyEngine.Tests/Engines/PolicyEngineTests.cs | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/Atrea.PolicyEngine.Tests/Atrea.PolicyEngine.Tests.csproj b/tests/Atrea.PolicyEngine.Tests/Atrea.PolicyEngine.Tests.csproj
index af91de76..2004ff22 100644
--- a/tests/Atrea.PolicyEngine.Tests/Atrea.PolicyEngine.Tests.csproj
+++ b/tests/Atrea.PolicyEngine.Tests/Atrea.PolicyEngine.Tests.csproj
@@ -26,7 +26,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
diff --git a/tests/Atrea.PolicyEngine.Tests/Engines/AsyncPolicyEngineTests.cs b/tests/Atrea.PolicyEngine.Tests/Engines/AsyncPolicyEngineTests.cs
index 2c2d4b7b..9b45578f 100644
--- a/tests/Atrea.PolicyEngine.Tests/Engines/AsyncPolicyEngineTests.cs
+++ b/tests/Atrea.PolicyEngine.Tests/Engines/AsyncPolicyEngineTests.cs
@@ -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()).Returns(InputPolicyResult.Continue);
@@ -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()).Returns(badInputPolicyResult);
diff --git a/tests/Atrea.PolicyEngine.Tests/Engines/PolicyEngineTests.cs b/tests/Atrea.PolicyEngine.Tests/Engines/PolicyEngineTests.cs
index 0e0b624e..8566b024 100644
--- a/tests/Atrea.PolicyEngine.Tests/Engines/PolicyEngineTests.cs
+++ b/tests/Atrea.PolicyEngine.Tests/Engines/PolicyEngineTests.cs
@@ -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);