@@ -17,19 +17,25 @@ public void Setup(){}
1717 public void AndThenAnotherThingIsTrue ( ) { }
1818 public void AndWhenSomethingElseHappens ( ) { }
1919 public void And_When_another_THING_Happens ( ) { }
20+ public void ButWhenSomethingDoesNotHappen ( ) { }
21+ public void But_When_another_THING_does_not_happen ( ) { }
2022 public void GivenSomeState ( ) { }
2123 public void AndSomethingElseToo ( ) { }
2224 public void WhenSomethingHappens ( ) { }
2325 public void AndGivenAnotherState ( ) { }
2426 public void And_Given_Some_OTHER_state ( ) { }
2527 public void AndGiven_some_other_initial_state ( ) { }
28+ public void ButGiven_some_initial_state_is_not_set ( ) { }
2629 public void ThenSomethingIsTrue ( ) { }
2730 public void TearDown ( ) { }
2831 public void And_YET_another_thing ( ) { }
2932 public void AndThen_something_else ( ) { }
3033 public void And_then_there_was_that_one_time ( ) { }
3134 public void But_some_condition_is_not_true ( ) { }
3235 public void ButSomeOtherConditionIsNotTrue ( ) { }
36+ public void ButThenSomeOtherConditionIsNotTrueEither ( ) { }
37+ public void But_then_again_some_condition_is_not_true ( ) { }
38+ public void But_Given_Some_OTHER_state_is_not_set ( ) { }
3339 }
3440
3541 [ Test ]
@@ -39,16 +45,20 @@ public void VerifyScannedSteps()
3945 _steps = new DefaultMethodNameStepScanner ( ) . Scan ( TestContext . GetContext ( _typeWithoutAttribute ) ) . ToList ( ) ;
4046 int stepIndex = 0 ;
4147
42- Assert . That ( _steps . Count , Is . EqualTo ( 18 ) ) ;
48+ Assert . That ( _steps . Count , Is . EqualTo ( 24 ) ) ;
4349 AssertStep ( _steps [ stepIndex ++ ] , "Establish context" , ExecutionOrder . Initialize , false , false ) ;
4450 AssertStep ( _steps [ stepIndex ++ ] , "Setup" , ExecutionOrder . Initialize , false , false ) ;
4551 AssertStep ( _steps [ stepIndex ++ ] , "Given some state" , ExecutionOrder . SetupState ) ;
4652 AssertStep ( _steps [ stepIndex ++ ] , "And another state" , ExecutionOrder . ConsecutiveSetupState ) ;
4753 AssertStep ( _steps [ stepIndex ++ ] , "And Some OTHER state" , ExecutionOrder . ConsecutiveSetupState ) ;
4854 AssertStep ( _steps [ stepIndex ++ ] , "And some other initial state" , ExecutionOrder . ConsecutiveSetupState ) ;
55+ AssertStep ( _steps [ stepIndex ++ ] , "But some initial state is not set" , ExecutionOrder . ConsecutiveSetupState ) ;
56+ AssertStep ( _steps [ stepIndex ++ ] , "But Some OTHER state is not set" , ExecutionOrder . ConsecutiveSetupState ) ;
4957 AssertStep ( _steps [ stepIndex ++ ] , "When something happens" , ExecutionOrder . Transition ) ;
5058 AssertStep ( _steps [ stepIndex ++ ] , "And something else happens" , ExecutionOrder . ConsecutiveTransition ) ;
5159 AssertStep ( _steps [ stepIndex ++ ] , "And another THING Happens" , ExecutionOrder . ConsecutiveTransition ) ;
60+ AssertStep ( _steps [ stepIndex ++ ] , "But something does not happen" , ExecutionOrder . ConsecutiveTransition ) ;
61+ AssertStep ( _steps [ stepIndex ++ ] , "But another THING does not happen" , ExecutionOrder . ConsecutiveTransition ) ;
5262 AssertStep ( _steps [ stepIndex ++ ] , "Then something is true" , ExecutionOrder . Assertion , true ) ;
5363 AssertStep ( _steps [ stepIndex ++ ] , "And another thing is true" , ExecutionOrder . ConsecutiveAssertion , true ) ;
5464 AssertStep ( _steps [ stepIndex ++ ] , "And something else too" , ExecutionOrder . ConsecutiveAssertion , true ) ;
@@ -57,6 +67,8 @@ public void VerifyScannedSteps()
5767 AssertStep ( _steps [ stepIndex ++ ] , "And there was that one time" , ExecutionOrder . ConsecutiveAssertion , true ) ;
5868 AssertStep ( _steps [ stepIndex ++ ] , "But some condition is not true" , ExecutionOrder . ConsecutiveAssertion , true ) ;
5969 AssertStep ( _steps [ stepIndex ++ ] , "But some other condition is not true" , ExecutionOrder . ConsecutiveAssertion , true ) ;
70+ AssertStep ( _steps [ stepIndex ++ ] , "But some other condition is not true either" , ExecutionOrder . ConsecutiveAssertion , true ) ;
71+ AssertStep ( _steps [ stepIndex ++ ] , "But again some condition is not true" , ExecutionOrder . ConsecutiveAssertion , true ) ;
6072 AssertStep ( _steps [ stepIndex ++ ] , "Tear down" , ExecutionOrder . TearDown , asserts : false , shouldReport : false ) ;
6173 }
6274
0 commit comments