Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [TestFixture]
- public class AccountTest
- {
- [Test]
- public void TransferFunds()
- {
- Account source = new Account();
- source.Deposit(200m);
- }
- [Test]
- public void TransferWithInsufficientFunds()
- {
- }
- }
- [Test]
- public void TransferFunds()
- {
- Account source = new Account();
- source.Deposit(200m);
- }
- [Then(@"I Transfer Funds")]
- public void ITransferFunds()
- {
- Account source = new Account();
- source.Deposit(200m);
- }
- Scenario: One single spare
- Given a new bowling game
- When I roll the following series: 3,7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
- Then my total score should be 29
- [NUnit.Framework.TestAttribute()]
- [NUnit.Framework.DescriptionAttribute("One single spare")]
- public virtual void OneSingleSpare()
- {
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("One single spare", ((string[])(null)));
- #line 7
- this.ScenarioSetup(scenarioInfo);
- #line 8
- testRunner.Given("a new bowling game");
- #line 9
- testRunner.When("I roll the following series:t3,7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1");
- #line 10
- testRunner.Then("my total score should be 29");
- #line hidden
- testRunner.CollectScenarioErrors();
- }
- [Xunit.FactAttribute()]
- [Xunit.TraitAttribute("FeatureTitle", "Score Calculation (alternative forms)")]
- [Xunit.TraitAttribute("Description", "One single spare")]
- public virtual void OneSingleSpare()
- {
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("One single spare", ((string[])(null)));
- #line 7
- this.ScenarioSetup(scenarioInfo);
- #line 8
- testRunner.Given("a new bowling game");
- #line 9
- testRunner.When("I roll the following series:t3,7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1");
- #line 10
- testRunner.Then("my total score should be 29");
- #line hidden
- testRunner.CollectScenarioErrors();
- }
Add Comment
Please, Sign In to add comment