Skip to content

Commit 38e5d78

Browse files
committed
added fluent API to bddfy rocks too
1 parent e44cae1 commit 38e5d78

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

TestStack.BDDfy.Samples/BDDfy_Rocks.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using NUnit.Framework;
22
using TestStack.BDDfy.Core;
3+
using TestStack.BDDfy.Scanners.StepScanners.Fluent;
34

45
namespace TestStack.BDDfy.Samples
56
{
@@ -26,9 +27,19 @@ void AndTheQualityAndMaintainabilityOfMyTestSkyrocket()
2627
}
2728

2829
[Test]
29-
public void Verify()
30+
public void BDDfy_with_reflective_API()
3031
{
3132
this.BDDfy();
3233
}
34+
35+
[Test]
36+
public void BDDfy_with_fluent_API()
37+
{
38+
this.Given(_ => Given_I_have_not_used_BDDfy_before())
39+
.When(_ => WhenIAmIntroducedToTheFramework())
40+
.Then(_ => ThenILikeItAndStartUsingIt())
41+
.And(_ => AndTheQualityAndMaintainabilityOfMyTestSkyrocket())
42+
.BDDfy();
43+
}
3344
}
3445
}

0 commit comments

Comments
 (0)