Skip to content

Commit 8ef7009

Browse files
committed
Refactor assertion in ObservableValidator test
Replaces Assert.IsTrue(!...) with Assert.IsFalse(...) for clarity in the Test_ObservableValidator_ValidateReturn test.
1 parent c75df26 commit 8ef7009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservableValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void Test_ObservableValidator_ValidateReturn(string value, bool isValid)
146146

147147
if (isValid)
148148
{
149-
Assert.IsTrue(!model.GetErrors(nameof(Person.Name)).Any());
149+
Assert.IsFalse(model.GetErrors(nameof(Person.Name)).Any());
150150
}
151151
else
152152
{

0 commit comments

Comments
 (0)