Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
Add test for IAsyncDisposable
Browse files Browse the repository at this point in the history
  • Loading branch information
Abrynos committed Aug 21, 2021
1 parent 948f2ab commit 01ffc38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Implement.Net.Tests/TypeFactoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ public void IgnoreCache() {
Assert.NotSame(typeA, typeB);
}

[Fact]
public void ImplementIAsyncDisposeDirectly() => Assert.Throws<ArgumentException>(() => CreateType<IAsyncDisposable>());

[Fact]
public void ImplementIDisposeDirectly() => Assert.Throws<ArgumentException>(() => CreateType<IDisposable>());

Expand Down

0 comments on commit 01ffc38

Please sign in to comment.