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();
}
}
}
Comments
0 B
|👍
/👎