From 9127daf952dbe00bfce7f2b18996259ec6445c0b Mon Sep 17 00:00:00 2001 From: jbe2277 Date: Mon, 6 Jan 2025 17:04:02 +0100 Subject: [PATCH] Test: Fix warnings --- .../System.Waf.Core.Test/Foundation/ValidatableModelTest.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/System.Waf/System.Waf/System.Waf.Core.Test/Foundation/ValidatableModelTest.cs b/src/System.Waf/System.Waf/System.Waf.Core.Test/Foundation/ValidatableModelTest.cs index 1cc71601..e6ddbd83 100644 --- a/src/System.Waf/System.Waf/System.Waf.Core.Test/Foundation/ValidatableModelTest.cs +++ b/src/System.Waf/System.Waf/System.Waf.Core.Test/Foundation/ValidatableModelTest.cs @@ -164,9 +164,9 @@ public void ValidationResultComparerTest() var comparerType = typeof(ValidatableModel).GetNestedType("ValidationResultComparer", BindingFlags.NonPublic)!; var comparer = (IEqualityComparer)comparerType.GetProperty("Default", BindingFlags.Static | BindingFlags.Public)!.GetValue(null)!; - Assert.IsTrue(comparer.Equals(null, null)); - Assert.IsFalse(comparer.Equals(new ValidationResult(null), null)); - Assert.IsFalse(comparer.Equals(null, new ValidationResult(null))); + Assert.IsTrue(comparer.Equals(null!, null!)); + Assert.IsFalse(comparer.Equals(new ValidationResult(null), null!)); + Assert.IsFalse(comparer.Equals(null!, new ValidationResult(null))); Assert.IsTrue(comparer.Equals(new ValidationResult(null), new ValidationResult(null))); Assert.IsFalse(comparer.Equals(new ValidationResult("Test"), new ValidationResult("Bill"))); Assert.IsTrue(comparer.Equals(new ValidationResult("Test"), new ValidationResult("Test")));