Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using NUnit.Framework;
- using TechTalk.SpecFlow;
- namespace CarLot.Specs
- {
- [Binding]
- public class FunnyCarSteps {
- Program p = new Program();
- [Given]
- public void GivenIHaveANewFunnyCar()
- {
- p.CreateNewFunnyCar();
- }
- [Then]
- public void ThenItsFuelTypeShouldBeMethanol()
- {
- Assert.IsTrue(p.CarList[0].fuelType == Program.FuelType.Methanol);
- }
- [Then]
- public void ThenIDriveIt()
- {
- p.CarList[0].Drive();
- }
- [Then]
- public void ThenTheTankShouldBeEmpty()
- {
- Assert.IsTrue(p.CarList[0].fuelLevel == 0);
- p.CarList.Clear();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement