Skip to content

Commit 716b790

Browse files
committed
Merge pull request #227 from tiesmaster/master
Enable syntax highlighting for examples in the readme
2 parents 42f9fe0 + f2bef01 commit 716b790

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ This adds BDDfy assembly and its dependencies to your test project. If this is t
1717

1818
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):
1919

20+
````csharp
2021
[Story(
2122
AsA = "As an Account Holder",
2223
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
6869
this.BDDfy();
6970
}
7071
}
72+
````
7173

7274
And this gives you a report like:
7375

@@ -88,6 +90,7 @@ This is just the console report. Have a look at your output folder and you shoul
8890

8991
If you want more control you can also use BDDfy's Fluent API. Here is another example done using the Fluent API:
9092

93+
````csharp
9194
[Fact]
9295
public void CardHasBeenDisabled()
9396
{
@@ -97,6 +100,7 @@ If you want more control you can also use BDDfy's Fluent API. Here is another ex
97100
.And(s => s.AndTheAtmShouldSayTheCardHasBeenRetained())
98101
.BDDfy(htmlReportName: "ATM");
99102
}
103+
````
100104

101105
which gives you a report like:
102106

0 commit comments

Comments
 (0)