Skip to content

Commit 2faf3ea

Browse files
committed
Fixed unit tests
1 parent bab6d9a commit 2faf3ea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

UnitTests/UnitTests.Shared/Mvvm/Test_ObservableValidator.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public void Test_ObservableValidator_HasErrors()
3232
// this last one to raise notifications too so that users can bind to that in the UI.
3333
Assert.IsTrue(model.HasErrors);
3434
Assert.AreEqual(args.Count, 2);
35-
Assert.AreEqual(args[0].PropertyName, nameof(INotifyDataErrorInfo.HasErrors));
36-
Assert.AreEqual(args[1].PropertyName, nameof(Person.Name));
35+
Assert.AreEqual(args[0].PropertyName, nameof(Person.Name));
36+
Assert.AreEqual(args[1].PropertyName, nameof(INotifyDataErrorInfo.HasErrors));
3737

3838
model.Name = "Valid";
3939

4040
Assert.IsFalse(model.HasErrors);
4141
Assert.AreEqual(args.Count, 4);
42-
Assert.AreEqual(args[2].PropertyName, nameof(INotifyDataErrorInfo.HasErrors));
43-
Assert.AreEqual(args[3].PropertyName, nameof(Person.Name));
42+
Assert.AreEqual(args[2].PropertyName, nameof(Person.Name));
43+
Assert.AreEqual(args[3].PropertyName, nameof(INotifyDataErrorInfo.HasErrors));
4444
}
4545

4646
[TestCategory("Mvvm")]
@@ -131,7 +131,6 @@ public void Test_ObservableValidator_GetErrors()
131131

132132
[TestCategory("Mvvm")]
133133
[TestMethod]
134-
[DataRow(null, false)]
135134
[DataRow("", false)]
136135
[DataRow("No", false)]
137136
[DataRow("This text is really, really too long for the target property", false)]

0 commit comments

Comments
 (0)