Skip to content

Commit aac979b

Browse files
committed
Use async.
1 parent daf06c6 commit aac979b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/IKVM.ByteCode.Tests/Decoding/ClassFileTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)