public void Accelerate_To_25MilesPerHour() { var hatchback = new ReviewSamples.After.Hatchback { Model = "Vauxhall Corsa", EngineSize = 1100, Color = "Red", MaxSpeed = 130, Doors = 3, MaxPassengers = 4 }; hatchback.Accelerate(5); Assert.That(hatchback.CurrentSpeed, Is.EqualTo(25)); }
public void Accelerate_To_MaxSpeed() { var hatchback = new ReviewSamples.After.Hatchback { Model = "Vauxhall Corsa", EngineSize = 1100, Color = "Red", MaxSpeed = 130, Doors = 3, MaxPassengers = 4, BPH = 350 }; hatchback.Accelerate(8); Assert.That(hatchback.CurrentSpeed, Is.LessThanOrEqualTo(hatchback.MaxSpeed)); }