Skip to content

Commit

Permalink
Added the xml necessary to pass the example arguments for Given, When…
Browse files Browse the repository at this point in the history
…, and Then. Right now I am receiving an exception when I try to add xml for comments. I am going to leave those out for now and investigate the exception more at a later time. I will call the Step Definition and Event Definition file templates done for now.
  • Loading branch information
dragan committed Jun 1, 2010
1 parent d0cd853 commit 3866f22
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
<MemberMethod Attributes="Public, Final" Name="GivenIHaveEnteredSomethingIntoTheCalculator" ReturnType="System.Void">
<CustomAttributes>
<AttributeDeclaration Name="Given">
<Arguments>
<AttributeArgument>
<Value>
<PrimitiveExpression Value="I have entered (.*) into the calculator"/>
</Value>
</AttributeArgument>
</Arguments>
</AttributeDeclaration>
</CustomAttributes>
<Parameters>
Expand All @@ -52,6 +59,13 @@
<MemberMethod Attributes="Public, Final" Name="WhenIPressAdd" ReturnType="System.Void">
<CustomAttributes>
<AttributeDeclaration Name="When">
<Arguments>
<AttributeArgument>
<Value>
<PrimitiveExpression Value="I press add"/>
</Value>
</AttributeArgument>
</Arguments>
</AttributeDeclaration>
</CustomAttributes>
<Statements>
Expand All @@ -69,6 +83,13 @@
<MemberMethod Attributes="Public, Final" Name="ThenTheResultShouldBe" ReturnType="System.Void">
<CustomAttributes>
<AttributeDeclaration Name="Then">
<Arguments>
<AttributeArgument>
<Value>
<PrimitiveExpression Value="the result should be (.*) on the screen"/>
</Value>
</AttributeArgument>
</Arguments>
</AttributeDeclaration>
</CustomAttributes>
<Parameters>
Expand Down

0 comments on commit 3866f22

Please sign in to comment.