summaryrefslogtreecommitdiff
path: root/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-06 18:24:59 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-06 18:24:59 -0400
commitb6c8cfc28b2c94e6dc3cb07d3058371dd6775e70 (patch)
tree4614e6eeb590843c7769f3b1857b71bdfa759071 /src/SMAPI.Tests/Utilities/SemanticVersionTests.cs
parenta593eda30f82af474887d91458b0e9158f66fefc (diff)
downloadSMAPI-b6c8cfc28b2c94e6dc3cb07d3058371dd6775e70.tar.gz
SMAPI-b6c8cfc28b2c94e6dc3cb07d3058371dd6775e70.tar.bz2
SMAPI-b6c8cfc28b2c94e6dc3cb07d3058371dd6775e70.zip
simplify 'is not' patterns
Diffstat (limited to 'src/SMAPI.Tests/Utilities/SemanticVersionTests.cs')
-rw-r--r--src/SMAPI.Tests/Utilities/SemanticVersionTests.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs b/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs
index c8270373..142c9814 100644
--- a/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs
+++ b/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs
@@ -455,7 +455,7 @@ namespace SMAPI.Tests.Utilities
TestContext.WriteLine($"Exception thrown:\n{ex}");
return;
}
- catch (Exception ex) when (!(ex is AssertionException))
+ catch (Exception ex) when (ex is not AssertionException)
{
TestContext.WriteLine($"Exception thrown:\n{ex}");
Assert.Fail(message ?? $"Didn't throw the expected exception; expected {typeof(T).FullName}, got {ex.GetType().FullName}.");