You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ This adds BDDfy assembly and its dependencies to your test project. If this is t
17
17
18
18
Now that you have installed BDDfy, write your first test (this test is borrowed from ATM sample that you can install using nuget package TestStack.BDDfy.Samples):
19
19
20
+
````csharp
20
21
[Story(
21
22
AsA="As an Account Holder",
22
23
IWant="I want to withdraw cash from an ATM",
@@ -68,6 +69,7 @@ Now that you have installed BDDfy, write your first test (this test is borrowed
68
69
this.BDDfy();
69
70
}
70
71
}
72
+
````
71
73
72
74
And this gives you a report like:
73
75
@@ -88,6 +90,7 @@ This is just the console report. Have a look at your output folder and you shoul
88
90
89
91
If you want more control you can also use BDDfy's Fluent API. Here is another example done using the Fluent API:
90
92
93
+
````csharp
91
94
[Fact]
92
95
publicvoidCardHasBeenDisabled()
93
96
{
@@ -97,6 +100,7 @@ If you want more control you can also use BDDfy's Fluent API. Here is another ex
0 commit comments