public void PetrolMoveAreEqual() { string constResult = "Перемещение на бензине"; IMovable movable = new PetrolMove(); string result; result = movable.Move(); Assert.AreEqual(constResult, result); }
public static void Call() { IMovable movable = new ElectricMove(); var car = new Car(movable); car.Move(); movable = new PetrolMove(); car.Movable = movable; car.Move(); }