Skip to content

Commit 3c7d24d

Browse files
committed
Add new scenario to add more numbers
1 parent 34fb655 commit 3c7d24d

File tree

3 files changed

+65
-1
lines changed

3 files changed

+65
-1
lines changed

GettingStarted/1_SimpleStarterTests.feature

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@
77
Scenario: Add two numbers - no variables
88
Given I have entered the numbers 1 and 2
99
When I add 1 and 2 together
10-
Then the result should be 3
10+
Then the result should be 3
11+
12+
Scenario: Add two different numbers - no variables
13+
Given I have entered the numbers 3 and 5
14+
When I add 3 and 5 together
15+
Then the result should be 8

GettingStarted/1_SimpleStarterTests.feature.cs

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GettingStarted/AddTwoNumbersTogetherSteps.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,24 @@ public void ThenTheResultShouldBeThree()
2929
{
3030
resultOfAddition.Should().Be(3);
3131
}
32+
33+
[Given(@"I have entered the numbers 3 and 5")]
34+
public void GivenIHaveEnteredTheNumbersThreAndFive()
35+
{
36+
ScenarioContext.Current.Pending();
37+
}
38+
39+
[When(@"I add 3 and 5 together")]
40+
public void WhenIAddThreeAndFiveTogether()
41+
{
42+
ScenarioContext.Current.Pending();
43+
}
44+
45+
[Then(@"the result should be 8")]
46+
public void ThenTheResultShouldBeEight()
47+
{
48+
ScenarioContext.Current.Pending();
49+
}
50+
3251
}
3352
}

0 commit comments

Comments
 (0)