File tree Expand file tree Collapse file tree
src/IKVM.ByteCode.Tests/Decoding Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,21 +19,21 @@ public class ClassFileTests
1919 public async Task ShouldThrowOnEmptyStream ( )
2020 {
2121 var stream = new MemoryStream ( ) ;
22- Assert . ThrowsExactly < InvalidClassException > ( ( ) => ClassFile . ReadAsync ( stream ) ) ;
22+ await Assert . ThrowsExactlyAsync < InvalidClassException > ( async ( ) => await ClassFile . ReadAsync ( stream ) ) ;
2323 }
2424
2525 [ TestMethod ]
2626 public async Task ShouldThrowOnSmallStream ( )
2727 {
2828 var stream = new MemoryStream ( new byte [ 10 ] ) ;
29- Assert . ThrowsExactly < InvalidClassMagicException > ( ( ) => ClassFile . ReadAsync ( stream ) ) ;
29+ await Assert . ThrowsExactlyAsync < InvalidClassMagicException > ( async ( ) => await ClassFile . ReadAsync ( stream ) ) ;
3030 }
3131
3232 [ TestMethod ]
3333 public async Task ShouldThrowOnBadStream ( )
3434 {
3535 var stream = new MemoryStream ( new byte [ 35 ] ) ;
36- Assert . ThrowsExactly < InvalidClassMagicException > ( ( ) => ClassFile . ReadAsync ( stream ) ) ;
36+ await Assert . ThrowsExactlyAsync < InvalidClassMagicException > ( async ( ) => await ClassFile . ReadAsync ( stream ) ) ;
3737 }
3838
3939 [ TestMethod ]
You can’t perform that action at this time.
0 commit comments