File tree Expand file tree Collapse file tree 3 files changed +90
-0
lines changed Expand file tree Collapse file tree 3 files changed +90
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ Scenario: Verify prepend step titles
3
+ Given a step with given in it
4
+ Given a step without given in it
5
+ And given a step with and given in it
6
+ And a step without given in it
7
+ But in step
8
+ But nothing in step
9
+ When stuff
10
+ When stuff
11
+ Then we are winning
12
+ Then we are winning
13
+
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using ApprovalTests ;
3
+ using NUnit . Framework ;
4
+ using TestStack . BDDfy . Reporters ;
5
+
6
+ namespace TestStack . BDDfy . Tests . Scanner . FluentScanner
7
+ {
8
+ [ TestFixture ]
9
+ public class PrependStepTypeTests
10
+ {
11
+ [ Test ]
12
+ public void VerifyPrependStepTitles ( )
13
+ {
14
+ var story = this . Given ( _ => GivenAStepWithGivenInIt ( ) )
15
+ . Given ( _ => AStepWithoutGivenInIt ( ) )
16
+ . And ( _ => AndGivenAStepWithAndGivenInIt ( ) )
17
+ . And ( _ => AStepWithoutGivenInIt ( ) )
18
+ . But ( _ => ButInStep ( ) )
19
+ . But ( _ => NothingInStep ( ) )
20
+ . When ( _ => WhenStuff ( ) )
21
+ . When ( _ => Stuff ( ) )
22
+ . Then ( _ => ThenWeAreWinning ( ) )
23
+ . Then ( _ => WeAreWinning ( ) )
24
+ . BDDfy ( ) ;
25
+
26
+ var textReporter = new TextReporter ( ) ;
27
+ textReporter . Process ( story ) ;
28
+ Approvals . Verify ( textReporter . ToString ( ) ) ;
29
+ }
30
+
31
+ private void GivenAStepWithGivenInIt ( )
32
+ {
33
+
34
+ }
35
+
36
+ private void AndGivenAStepWithAndGivenInIt ( )
37
+ {
38
+
39
+ }
40
+
41
+ private void AStepWithoutGivenInIt ( )
42
+ {
43
+
44
+ }
45
+
46
+ private void ButInStep ( )
47
+ {
48
+
49
+ }
50
+
51
+ private void NothingInStep ( )
52
+ {
53
+
54
+ }
55
+
56
+ private void WhenStuff ( )
57
+ {
58
+
59
+ }
60
+
61
+ private void Stuff ( )
62
+ {
63
+
64
+ }
65
+
66
+ private void ThenWeAreWinning ( )
67
+ {
68
+
69
+ }
70
+
71
+ private void WeAreWinning ( )
72
+ {
73
+
74
+ }
75
+ }
76
+ }
Original file line number Diff line number Diff line change 91
91
<Compile Include =" Scanner\FluentScanner\FluentWithExamples.cs" />
92
92
<Compile Include =" Scanner\FluentScanner\InlineAssertions.cs" />
93
93
<Compile Include =" Scanner\FluentScanner\StepTitleTests.cs" />
94
+ <Compile Include =" Scanner\FluentScanner\PrependStepTypeTests.cs" />
94
95
<Compile Include =" Scanner\ReflectiveScanner\ReflectiveWithExamples.cs" />
95
96
<Compile Include =" Scanner\StepScanners\Examples\ExampleTableTests.cs" />
96
97
<Compile Include =" Scanner\StepScanners\Examples\ExampleValueTests.cs" />
You can’t perform that action at this time.
0 commit comments