Skip to content

Commit

Permalink
Use InvalidOperationException everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingosse committed Oct 14, 2024
1 parent f70131c commit 407940e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,17 +656,17 @@ public async Task Async1CallbackFailureTest()
(target, arg1) =>
{
Interlocked.Increment(ref value);
throw new Exception("Expected");
throw new InvalidOperationException("Expected");
},
(target, returnValue, exception, state) =>
{
Interlocked.Increment(ref value);
throw new Exception("Expected");
throw new InvalidOperationException("Expected");
},
onDelegateAsyncEnd: (sender, returnValue, exception, state) =>
{
Interlocked.Increment(ref value);
throw new Exception("Expected");
throw new InvalidOperationException("Expected");
}));
var result = await func("Arg01").ConfigureAwait(false);
using var scope = new AssertionScope();
Expand Down

0 comments on commit 407940e

Please sign in to comment.