daily pastebin goal
57%
SHARE
TWEET

CarLotMaxSteps.cs

CryptoJones Aug 2nd, 2016 (edited) 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using NUnit.Framework;
  2. using TechTalk.SpecFlow;
  3.  
  4. namespace CarLot.Specs
  5. {
  6.     [Binding]
  7.     public class CarLotMaxSteps
  8.     {
  9.         Program carLotMaxProgram = new Program();
  10.  
  11.         [Given]
  12.         public void GivenIHaveAFullCarlot()
  13.         {
  14.  
  15.             carLotMaxProgram.CarList.Clear();
  16.             for (int i = 0; i < 25; i++)
  17.             {
  18.                 carLotMaxProgram.CreateNewPinto();
  19.             }
  20.             Assert.AreEqual(carLotMaxProgram.CarList.Count, 25);
  21.         }
  22.        
  23.         [When]
  24.         public void WhenITryToAddACar()
  25.         {
  26.             carLotMaxProgram.CreateNewPinto();
  27.         }
  28.        
  29.         [Then]
  30.         public void ThenTheNewCarShouldNotBeAdded()
  31.         {
  32.             Assert.AreEqual(carLotMaxProgram.CarList.Count, 25);
  33.             carLotMaxProgram.CarList.Clear();
  34.         }
  35.  
  36.     }
  37.  
  38.  
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top