File tree 2 files changed +4
-2
lines changed
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()
49
49
label . EnableAnimations ( ) ;
50
50
51
51
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 ) ) ;
53
53
}
54
54
55
55
[ Fact ( Timeout = ( int ) TestDuration . Medium ) ]
Original file line number Diff line number Diff line change @@ -77,7 +77,9 @@ public async Task ShouldOnlyExecuteCommandOnceWhenTextChangedHasOccurredMultiple
77
77
// arrange
78
78
var commandTCS = new TaskCompletionSource ( ) ;
79
79
var timesExecuted = 0 ;
80
- var entry = CreateEntryWithBehavior ( command : new Command < string > ( _ =>
80
+ var entry = CreateEntryWithBehavior (
81
+ minimumLengthThreshold : 4 ,
82
+ command : new Command < string > ( _ =>
81
83
{
82
84
timesExecuted ++ ;
83
85
commandTCS . SetResult ( ) ;
You can’t perform that action at this time.
0 commit comments