File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
UnitTests/UnitTests.Shared/Mvvm Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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 ) ]
You can’t perform that action at this time.
0 commit comments