File tree Expand file tree Collapse file tree 6 files changed +11
-13
lines changed
tests/MaterialDesignThemes.Wpf.Tests Expand file tree Collapse file tree 6 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 1-
2- using TUnit . Core ;
1+ using TUnit . Core ;
32using TUnit . Assertions ;
43using TUnit . Assertions . Extensions ;
54using System . Threading . Tasks ;
@@ -104,7 +103,7 @@ public void TestEnableEditBoxAssistProperty()
104103
105104 // Assert setting works
106105 DataGridAssist . SetEnableEditBoxAssist ( _testElement , true ) ;
107- Assert . True ( DataGridAssist . GetEnableEditBoxAssist ( _testElement ) ) ;
106+ await Assert . That ( DataGridAssist . GetEnableEditBoxAssist ( _testElement ) ) . IsTrue ( ) ;
108107 }
109108
110109 [ Test , STAThreadExecutor ]
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public async Task CanOpenAndCloseDialogWithIsOpen()
3030
3131 await Assert . That ( _dialogHost . IsOpen ) . IsFalse ( ) ;
3232 await Assert . That ( _dialogHost . CurrentSession ) . IsNull ( ) ;
33- Assert . True ( session ? . IsEnded ) ;
33+ await Assert . That ( session ? . IsEnded ) . IsTrue ( ) ;
3434 }
3535
3636 [ Test , STAThreadExecutor ]
@@ -151,7 +151,7 @@ public async Task WhenNoIdentifierIsSpecifiedItUsesSingleDialogHost()
151151 args . Session . Close ( ) ;
152152 } ) ) ) ;
153153
154- Assert . True ( isOpen ) ;
154+ await Assert . That ( _dialogHost . IsOpen ) . IsTrue ( ) ;
155155 }
156156
157157 [ Test , STAThreadExecutor ]
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ public async Task ToggleButtonInheritsIsTabStopWhenFalse()
3535
3636 [ Test , STAThreadExecutor ]
3737 [ Description ( "Issue 1231" ) ]
38- public void ToggleButtonInheritsIsTabStopWhenTrue ( )
38+ public async Task ToggleButtonInheritsIsTabStopWhenTrue ( )
3939 {
4040 var popupBox = new PopupBox { IsTabStop = true } ;
4141 popupBox . ApplyDefaultStyle ( ) ;
4242
4343 ToggleButton togglePart = popupBox . FindVisualChild < ToggleButton > ( PopupBox . TogglePartName ) ;
4444
45- Assert . True ( togglePart . IsTabStop ) ;
45+ await Assert . That ( togglePart . IsTabStop ) . IsTrue ( ) ;
4646 }
4747}
Original file line number Diff line number Diff line change 1-
2- using TUnit . Core ;
1+ using TUnit . Core ;
32using TUnit . Assertions ;
43using TUnit . Assertions . Extensions ;
54using System . Threading . Tasks ;
@@ -22,7 +21,7 @@ public void IsDuplicate_WithDuplicateItems_ItReturnsTrue()
2221 SnackbarMessageQueueItem item = CreateItem ( ) ;
2322 SnackbarMessageQueueItem other = CreateItem ( ) ;
2423
25- Assert . True ( item . IsDuplicate ( other ) ) ;
24+ await Assert . That ( item . IsDuplicate ( other ) ) . IsTrue ( ) ;
2625 }
2726
2827 [ Test ]
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public void Enqueue_ProperlySetsPromote()
8383 Assert . Single ( messages ) ;
8484 await Assert . That ( messages [ 0 ] . Content ) . IsEqualTo ( "Content" ) ;
8585 await Assert . That ( messages [ 0 ] . ActionContent ) . IsEqualTo ( "Action Content" ) ;
86- Assert . True ( messages [ 0 ] . IsPromoted ) ;
86+ await Assert . That ( messages [ 0 ] . IsPromoted ) . IsTrue ( ) ;
8787 }
8888
8989 private void Dispose ( bool disposing )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public void WhenMovePrevious_ItCanRetreatMultipleSlides()
4949 object parameter = 2 ;
5050
5151 //Act
52- Assert . True ( Transitioner . MovePreviousCommand . CanExecute ( parameter , transitioner ) ) ;
52+ await Assert . That ( Transitioner . MovePreviousCommand . CanExecute ( parameter , transitioner ) ) . IsTrue ( ) ;
5353 Transitioner . MovePreviousCommand . Execute ( parameter , transitioner ) ;
5454
5555 //Assert
@@ -81,7 +81,7 @@ public void ShortCircuitIssue3268()
8181
8282 //Act
8383 Assert . NotNull ( transitioner . SelectedItem ) ;
84- Assert . True ( transitioner . SelectedItem == child1 ) ;
84+ await Assert . That ( transitioner . SelectedItem == child1 ) . IsTrue ( ) ;
8585 lb . SelectedItem = lb . Items [ 1 ] ;
8686
8787 //Assert
You can’t perform that action at this time.
0 commit comments