diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-10-09 14:34:31 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-10-09 14:34:31 -0400 |
commit | d0704ef6f0040d10aa89e9cf1ee8d38098bff5df (patch) | |
tree | 09e5b25f46511bfba07f13ee2e5b019558ac110c /src/SMAPI.Tests/Utilities/SemanticVersionTests.cs | |
parent | 8dc12fd01c9274b045bafb04f02ef97fd8999c5d (diff) | |
download | SMAPI-d0704ef6f0040d10aa89e9cf1ee8d38098bff5df.tar.gz SMAPI-d0704ef6f0040d10aa89e9cf1ee8d38098bff5df.tar.bz2 SMAPI-d0704ef6f0040d10aa89e9cf1ee8d38098bff5df.zip |
fix nullability warnings
Diffstat (limited to 'src/SMAPI.Tests/Utilities/SemanticVersionTests.cs')
-rw-r--r-- | src/SMAPI.Tests/Utilities/SemanticVersionTests.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs b/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs index fedadba6..77c0da5f 100644 --- a/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs +++ b/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs @@ -382,11 +382,11 @@ namespace SMAPI.Tests.Utilities { // act string json = JsonConvert.SerializeObject(new SemanticVersion(versionStr)); - SemanticVersion after = JsonConvert.DeserializeObject<SemanticVersion>(json); + SemanticVersion? after = JsonConvert.DeserializeObject<SemanticVersion>(json); // assert Assert.IsNotNull(after, "The semantic version after deserialization is unexpectedly null."); - Assert.AreEqual(versionStr, after.ToString(), "The semantic version after deserialization doesn't match the input version."); + Assert.AreEqual(versionStr, after!.ToString(), "The semantic version after deserialization doesn't match the input version."); } |