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 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();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement