@@ -7,7 +7,7 @@ namespace TestStack.BDDfy.Tests.FluentScanner
77 [ TestFixture ]
88 public class WhenStepsAreScannedUsingFluentScanner
99 {
10- private IEnumerable < ExecutionStep > _steps ;
10+ private IEnumerable < Step > _steps ;
1111
1212 [ SetUp ]
1313 public void Setup ( )
@@ -22,11 +22,11 @@ public void IndicatedStepsAreReturned()
2222 Assert . That ( _steps . Count ( ) , Is . EqualTo ( 12 ) ) ;
2323 }
2424
25- ExecutionStep GivenSomeStateStep
25+ Step GivenSomeStateStep
2626 {
2727 get
2828 {
29- return _steps . Single ( s => s . StepTitle == "Given some state 1, 2" ) ;
29+ return _steps . Single ( s => s . Title == "Given some state 1, 2" ) ;
3030 }
3131 }
3232
@@ -48,11 +48,11 @@ public void GivenSomeState_StepReports()
4848 Assert . IsTrue ( GivenSomeStateStep . ShouldReport ) ;
4949 }
5050
51- ExecutionStep WhenSomeStepUsesIncompatibleNamingConventionStep
51+ Step WhenSomeStepUsesIncompatibleNamingConventionStep
5252 {
5353 get
5454 {
55- return _steps . Single ( s => s . StepTitle . Trim ( ) == "When some step uses incompatible naming convention" ) ;
55+ return _steps . Single ( s => s . Title . Trim ( ) == "When some step uses incompatible naming convention" ) ;
5656 }
5757 }
5858
@@ -74,11 +74,11 @@ public void WhenSomeStepUsesIncompatibleNamingConvention_Reports()
7474 Assert . IsTrue ( WhenSomeStepUsesIncompatibleNamingConventionStep . ShouldReport ) ;
7575 }
7676
77- ExecutionStep AndAMethodTakesArrayInputsStep
77+ Step AndAMethodTakesArrayInputsStep
7878 {
7979 get
8080 {
81- return _steps . Single ( s => s . StepTitle . Trim ( ) == "And a method takes array inputs 1, 2, 3, 4, 5" ) ;
81+ return _steps . Single ( s => s . Title . Trim ( ) == "And a method takes array inputs 1, 2, 3, 4, 5" ) ;
8282 }
8383 }
8484
@@ -100,11 +100,11 @@ public void AndAMethodTakesArrayInputs_Reports()
100100 Assert . IsTrue ( AndAMethodTakesArrayInputsStep . ShouldReport ) ;
101101 }
102102
103- ExecutionStep WhenSomethingHappensTransitionStep
103+ Step WhenSomethingHappensTransitionStep
104104 {
105105 get
106106 {
107- return _steps . Single ( s => s . StepTitle == "When something happens some input here" ) ;
107+ return _steps . Single ( s => s . Title == "When something happens some input here" ) ;
108108 }
109109 }
110110
@@ -126,11 +126,11 @@ public void WhenSomethingHappensTransitionStep_Reports()
126126 Assert . IsTrue ( WhenSomethingHappensTransitionStep . ShouldReport ) ;
127127 }
128128
129- ExecutionStep WhenSomethingHappensTransitionStepIgnoringInputInStepTitle
129+ Step WhenSomethingHappensTransitionStepIgnoringInputInStepTitle
130130 {
131131 get
132132 {
133- return _steps . Single ( s => s . StepTitle == "When something happens" ) ;
133+ return _steps . Single ( s => s . Title == "When something happens" ) ;
134134 }
135135 }
136136
@@ -152,11 +152,11 @@ public void WhenSomethingHappensTransitionStepIgnoringInputInStepTitle_Reports()
152152 Assert . IsTrue ( WhenSomethingHappensTransitionStepIgnoringInputInStepTitle . ShouldReport ) ;
153153 }
154154
155- ExecutionStep WhenSomethingHappensConsecutiveTransitionStep
155+ Step WhenSomethingHappensConsecutiveTransitionStep
156156 {
157157 get
158158 {
159- return _steps . Single ( s => s . StepTitle . Trim ( ) == "step used with other input for the second time" ) ;
159+ return _steps . Single ( s => s . Title . Trim ( ) == "step used with other input for the second time" ) ;
160160 }
161161 }
162162
@@ -178,11 +178,11 @@ public void WhenSomethingHappensConsecutiveTransitionStep_Reports()
178178 Assert . IsTrue ( WhenSomethingHappensConsecutiveTransitionStep . ShouldReport ) ;
179179 }
180180
181- ExecutionStep AndThenSomethingElseHappensStep
181+ Step AndThenSomethingElseHappensStep
182182 {
183183 get
184184 {
185- return _steps . Single ( s => s . StepTitle . Trim ( ) == "Overriding step name without arguments" ) ;
185+ return _steps . Single ( s => s . Title . Trim ( ) == "Overriding step name without arguments" ) ;
186186 }
187187 }
188188
@@ -204,11 +204,11 @@ public void AndThenSomethingElseHappensStep_Reports()
204204 Assert . IsTrue ( AndThenSomethingElseHappensStep . ShouldReport ) ;
205205 }
206206
207- ExecutionStep ThenTheFollowingAssertionsShouldBeCorrectStep
207+ Step ThenTheFollowingAssertionsShouldBeCorrectStep
208208 {
209209 get
210210 {
211- return _steps . Single ( s => s . StepTitle == "Then the following assertions should be correct" ) ;
211+ return _steps . Single ( s => s . Title == "Then the following assertions should be correct" ) ;
212212 }
213213 }
214214
@@ -230,11 +230,11 @@ public void ThenTheFollowingAssertionsShouldBeCorrectStep_Reports()
230230 Assert . IsTrue ( ThenTheFollowingAssertionsShouldBeCorrectStep . ShouldReport ) ;
231231 }
232232
233- ExecutionStep AndIncorrectAttributeWouldNotMatterStep
233+ Step AndIncorrectAttributeWouldNotMatterStep
234234 {
235235 get
236236 {
237- return _steps . Single ( s => s . StepTitle . Trim ( ) == "And incorrect attribute would not matter" ) ;
237+ return _steps . Single ( s => s . Title . Trim ( ) == "And incorrect attribute would not matter" ) ;
238238 }
239239 }
240240
@@ -256,15 +256,15 @@ public void AndIncorrectAttributeWouldNotMatterStep_Reports()
256256 Assert . IsTrue ( AndIncorrectAttributeWouldNotMatterStep . ShouldReport ) ;
257257 }
258258
259- ExecutionStep AndInputsAreFormattedPropertlyInTheTitle
259+ Step AndInputsAreFormattedPropertlyInTheTitle
260260 {
261261 get
262262 {
263263 var formattedTitle = string . Format (
264264 ScenarioToBeScannedUsingFluentScanner . InputDateStepTitleTemplate ,
265265 ScenarioToBeScannedUsingFluentScanner . InputDate ) ;
266266
267- return _steps . Single ( s => s . StepTitle . Trim ( ) == formattedTitle ) ;
267+ return _steps . Single ( s => s . Title . Trim ( ) == formattedTitle ) ;
268268 }
269269 }
270270
@@ -274,11 +274,11 @@ public void AndInputsAreFormattedPropertlyInTheTitle_IsAConsecutiveAssertingStep
274274 Assert . That ( AndInputsAreFormattedPropertlyInTheTitle . ExecutionOrder , Is . EqualTo ( ExecutionOrder . ConsecutiveAssertion ) ) ;
275275 }
276276
277- ExecutionStep TearDownStep
277+ Step TearDownStep
278278 {
279279 get
280280 {
281- return _steps . Single ( s => s . StepTitle == "Dispose" ) ;
281+ return _steps . Single ( s => s . Title == "Dispose" ) ;
282282 }
283283 }
284284
0 commit comments