-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnitTest1.cs
More file actions
38 lines (35 loc) · 1.1 KB
/
UnitTest1.cs
File metadata and controls
38 lines (35 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
namespace BDDTestWrapper.Example;
using Xunit;
using Xunit.Abstractions;
public class UnitTest1 : UnitTestBase
{
public UnitTest1(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
// foo
}
[Fact]
public void ItShouldDoTheThing()
{
this
.Given("the thing", () => {
// foo
})
.And("the other thing", () => {
// foo
})
.When("the thing is done to the thing", () => {
// do the thing to the thing
})
.And("the other thing is done to the other thing", () => {
// do the other thing to the other thing
})
.Then("the thing does the thing to the thing", () => {
// check that the thing did the thing to the thing
})
.And("the other thing does the other thing to the other thing", () => {
// check that the other thing did the other thing to the other thing
})
.Execute();
}
}