File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public async Task CancellationTokenExpired()
4949 label . EnableAnimations ( ) ;
5050
5151 await Task . Delay ( 10 , TestContext . Current . CancellationToken ) ;
52- await Assert . ThrowsAsync < OperationCanceledException > ( ( ) => animation . Animate ( label , cts . Token ) ) ;
52+ await Assert . ThrowsAnyAsync < OperationCanceledException > ( ( ) => animation . Animate ( label , cts . Token ) ) ;
5353 }
5454
5555 [ Fact ( Timeout = ( int ) TestDuration . Medium ) ]
Original file line number Diff line number Diff line change @@ -77,7 +77,9 @@ public async Task ShouldOnlyExecuteCommandOnceWhenTextChangedHasOccurredMultiple
7777 // arrange
7878 var commandTCS = new TaskCompletionSource ( ) ;
7979 var timesExecuted = 0 ;
80- var entry = CreateEntryWithBehavior ( command : new Command < string > ( _ =>
80+ var entry = CreateEntryWithBehavior (
81+ minimumLengthThreshold : 4 ,
82+ command : new Command < string > ( _ =>
8183 {
8284 timesExecuted ++ ;
8385 commandTCS . SetResult ( ) ;
You can’t perform that action at this time.
0 commit comments