CryptoJones icon

FunnyCarSteps.cs

CryptoJones | PRO | 08/02/16 04:21:27 PM UTC | 0 ⭐ | 653 👁️ | Never ⏰ | []
C# |

740 B

|

None

|

0 👍

/

0 👎

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

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎