Skip to content

Commit fd2a856

Browse files
author
Jake Ginnivan
committed
Made sample test not explicit
1 parent cf52fa7 commit fd2a856

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Samples/TestStack.BDDfy.Samples/AsyncExample.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ private async Task<Sut> CreateSut()
3131
}
3232

3333
[Test]
34-
[Explicit]
3534
public void Run()
3635
{
37-
this.BDDfy();
36+
var engine = this.LazyBDDfy();
37+
var exception = Assert.Throws<Exception>(() => engine.Run());
38+
Assert.AreEqual("Exception in async void method!!", exception.Message);
3839
}
3940

4041
internal class Sut

0 commit comments

Comments
 (0)