File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
TestStack.BDDfy.Tests/Scanner/FluentScanner Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,14 @@ public void MethodCallInStepTitle()
20
20
. Then ( _ => ThenTitleHas ( AMethodCall ( ) ) )
21
21
. And ( _ => something . Sub . SomethingWithArg ( "foo" ) )
22
22
. And ( _ => something . Sub . SomethingWithArg2 ( "foo" ) )
23
+ . And ( _ => something . Sub . SomethingWithArg3 ( "foo" ) )
23
24
. BDDfy ( ) ;
24
25
25
26
story . Scenarios . Single ( ) . Steps . ElementAt ( 2 ) . Title . ShouldBe ( "And different title" ) ;
26
27
story . Scenarios . Single ( ) . Steps . ElementAt ( 3 ) . Title . ShouldBe ( "Then title has Mutated state" ) ;
27
28
story . Scenarios . Single ( ) . Steps . ElementAt ( 4 ) . Title . ShouldBe ( "And with arg foo" ) ;
28
29
story . Scenarios . Single ( ) . Steps . ElementAt ( 5 ) . Title . ShouldBe ( "And with arg" ) ;
30
+ story . Scenarios . Single ( ) . Steps . ElementAt ( 6 ) . Title . ShouldBe ( "And with foo arg" ) ;
29
31
}
30
32
31
33
public class FooClass
@@ -59,6 +61,11 @@ public void SomethingWithArg(string arg)
59
61
public void SomethingWithArg2 ( string arg )
60
62
{
61
63
}
64
+
65
+ [ StepTitle ( "With {0} arg" , false ) ]
66
+ public void SomethingWithArg3 ( string arg )
67
+ {
68
+ }
62
69
}
63
70
64
71
private string AMethodCall ( )
You can’t perform that action at this time.
0 commit comments