public void VehiclesCanTransform() { var v = new Vehicle(); v.Transform(); Assert.IsTrue(v.Log.Contains("autobot")); }
public void CrashesHurt() { var v = new Vehicle(); v.Crash(x => x); Assert.IsTrue(v.Log.Contains("1")); v.Crash(x => x * 55); Assert.IsTrue(v.Log.Contains("55")); }
public void VehicleCanDrive() { var v = new Vehicle(); v.Drive(); Assert.IsTrue(v.Log.Contains("Drove")); v.BreakDown("OUt of Gas"); Assert.IsTrue(v.Log.Contains("Broke")); }
public MotorCycleBuilder() { vehicle = new Vehicle("MotorCycle"); }
public CarBuilder() { vehicle = new Vehicle("Car"); }
public ScooterBuilder() { vehicle = new Vehicle("Scooter"); }