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_DefendTest() { // Arrange ICar car = new ArmoredCar(new BaseCar()); var expected = 100 + 40; // Action var actual = car.Defend(); // Arrange Assert.AreEqual(expected, actual); }