public void ShouldReturnArmoredCar() { var baseCar = new BaseCar(); var car = new ArmoredCar(baseCar); Assert.AreEqual(80, car.Drive()); Assert.AreEqual(100, car.Attack()); Assert.AreEqual(140, car.Defend()); }
public void ArmoredCar_DriveTest() { // Arrange ICar car = new ArmoredCar(new BaseCar()); var expected = 100 - 20; // Action var actual = car.Drive(); // Arrange Assert.AreEqual(expected, actual); }