Skip to content

Commit e44cae1

Browse files
committed
Added BDDfy Rocks example :)
1 parent 9ce801f commit e44cae1

File tree

3 files changed

+38
-3
lines changed

3 files changed

+38
-3
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using NUnit.Framework;
2+
using TestStack.BDDfy.Core;
3+
4+
namespace TestStack.BDDfy.Samples
5+
{
6+
[Story(
7+
AsA = "As a .Net programmer",
8+
IWant = "I want to use BDDfy",
9+
SoThat = "So that BDD becomes easy and fun")]
10+
public class BDDfy_Rocks
11+
{
12+
void Given_I_have_not_used_BDDfy_before()
13+
{
14+
}
15+
16+
void WhenIAmIntroducedToTheFramework()
17+
{
18+
}
19+
20+
void ThenILikeItAndStartUsingIt()
21+
{
22+
}
23+
24+
void AndTheQualityAndMaintainabilityOfMyTestSkyrocket()
25+
{
26+
}
27+
28+
[Test]
29+
public void Verify()
30+
{
31+
this.BDDfy();
32+
}
33+
}
34+
}

TestStack.BDDfy.Samples/TicTacToe/CustomTextReporter.cs renamed to TestStack.BDDfy.Samples/CustomTextReporter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using System;
22
using System.IO;
3-
using System.Text;
43
using System.Linq;
4+
using System.Text;
55
using TestStack.BDDfy.Core;
66

7-
namespace TestStack.BDDfy.Samples.TicTacToe
7+
namespace TestStack.BDDfy.Samples
88
{
99
/// <summary>
1010
/// This is a custom reporter that shows you how easily you can create a custom report.

TestStack.BDDfy.Samples/TestStack.BDDfy.Samples.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@
4949
<Compile Include="Atm\AccountHolderWithdrawsCash.cs" />
5050
<Compile Include="Atm\HtmlReportConfig.cs" />
5151
<Compile Include="BDDfyConfiguration.cs" />
52+
<Compile Include="BDDfy_Rocks.cs" />
5253
<Compile Include="TicTacToe\Game.cs" />
5354
<Compile Include="TicTacToe\Helpers.cs" />
54-
<Compile Include="TicTacToe\CustomTextReporter.cs" />
55+
<Compile Include="CustomTextReporter.cs" />
5556
<Compile Include="TicTacToe\TicTacToe.cs" />
5657
<Compile Include="TicTacToe\WinnerGame.cs" />
5758
<Compile Include="TicTacToe\XWins.cs" />

0 commit comments

Comments
 (0)