using NUnit.Framework;
using TechTalk.SpecFlow;
namespace CarLot.Specs
{
[Binding]
public class CarLotMaxSteps
{
Program carLotMaxProgram = new Program();
[Given]
public void GivenIHaveAFullCarlot()
{
carLotMaxProgram.CarList.Clear();
for (int i = 0; i < 25; i++)
{
carLotMaxProgram.CreateNewPinto();
}
Assert.AreEqual(carLotMaxProgram.CarList.Count, 25);
}
[When]
public void WhenITryToAddACar()
{
carLotMaxProgram.CreateNewPinto();
}
[Then]
public void ThenTheNewCarShouldNotBeAdded()
{
Assert.AreEqual(carLotMaxProgram.CarList.Count, 25);
carLotMaxProgram.CarList.Clear();
}
}
}
Comments
0 B
|👍
/👎