Skip to content

Commit 9f882c5

Browse files
Fixed test BlockAsyncSwitchTests
1 parent 7122a69 commit 9f882c5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/Hyperbee.Expressions.Tests/BlockAsyncSwitchTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithNestedSwitchesAndAwaits
189189
[DataRow( CompleterType.Deferred, CompilerType.Fast )]
190190
[DataRow( CompleterType.Deferred, CompilerType.System )]
191191
[DataRow( CompleterType.Deferred, CompilerType.Interpret )]
192+
[ExpectedException( typeof( ArgumentException ) )]
192193
public async Task AsyncBlock_ShouldThrowException_WithAwaitInSwitchCaseTestValues( CompleterType completer, CompilerType compiler )
193194
{
194195
// Arrange: Switch case test values cannot contain awaited tasks
@@ -210,7 +211,7 @@ public async Task AsyncBlock_ShouldThrowException_WithAwaitInSwitchCaseTestValue
210211
var compiledLambda = lambda.Compile( compiler );
211212

212213
// Act
213-
await Assert.ThrowsExactlyAsync<ArgumentException>( async () => await compiledLambda() );
214+
await compiledLambda();
214215
}
215216

216217
[TestMethod]

0 commit comments

Comments
 (0)