File tree Expand file tree Collapse file tree
test/Hyperbee.Expressions.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments