Guest User

Untitled

a guest
Jan 23rd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. [TestFixture]
  2. public class AccountTest
  3. {
  4. [Test]
  5. public void TransferFunds()
  6. {
  7. Account source = new Account();
  8. source.Deposit(200m);
  9. }
  10.  
  11. [Test]
  12. public void TransferWithInsufficientFunds()
  13. {
  14. }
  15. }
  16.  
  17. [Test]
  18. public void TransferFunds()
  19. {
  20. Account source = new Account();
  21. source.Deposit(200m);
  22. }
  23.  
  24. [Then(@"I Transfer Funds")]
  25. public void ITransferFunds()
  26. {
  27. Account source = new Account();
  28. source.Deposit(200m);
  29. }
  30.  
  31. Scenario: One single spare
  32. Given a new bowling game
  33. 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
  34. Then my total score should be 29
  35.  
  36. [NUnit.Framework.TestAttribute()]
  37. [NUnit.Framework.DescriptionAttribute("One single spare")]
  38. public virtual void OneSingleSpare()
  39. {
  40. TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("One single spare", ((string[])(null)));
  41. #line 7
  42. this.ScenarioSetup(scenarioInfo);
  43. #line 8
  44. testRunner.Given("a new bowling game");
  45. #line 9
  46. 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");
  47. #line 10
  48. testRunner.Then("my total score should be 29");
  49. #line hidden
  50. testRunner.CollectScenarioErrors();
  51. }
  52.  
  53. [Xunit.FactAttribute()]
  54. [Xunit.TraitAttribute("FeatureTitle", "Score Calculation (alternative forms)")]
  55. [Xunit.TraitAttribute("Description", "One single spare")]
  56. public virtual void OneSingleSpare()
  57. {
  58. TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("One single spare", ((string[])(null)));
  59. #line 7
  60. this.ScenarioSetup(scenarioInfo);
  61. #line 8
  62. testRunner.Given("a new bowling game");
  63. #line 9
  64. 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");
  65. #line 10
  66. testRunner.Then("my total score should be 29");
  67. #line hidden
  68. testRunner.CollectScenarioErrors();
  69. }
Add Comment
Please, Sign In to add comment