public void SpeedBoatCanTurnOff() { //arrange SpeedBoat speedboat = new SpeedBoat(); //act string var = speedboat.TurnOff(); //assert Assert.Equal("The boat has turned off.", var); }
static void ThingsSpeedBoatCanDo() { SpeedBoat speedboat = new SpeedBoat(); Console.WriteLine("Hello World!"); Console.WriteLine("-----Does a speedBoat have a Bow?-----"); bool output1 = speedboat.HasBow; Console.WriteLine(output1); Console.WriteLine("-----is a speedBoat Real?-----"); bool output2 = speedboat.IsReal; Console.WriteLine(output2); Console.WriteLine("-----can a speedBoat drive?-----"); Console.WriteLine(speedboat.Drives()); Console.WriteLine("-----Can the speedBoat turn on?-----"); Console.WriteLine(speedboat.TurnOn()); Console.WriteLine("-----Can the speedBoat turn off?-----"); Console.WriteLine(speedboat.TurnOff()); Console.WriteLine("price:"); Console.WriteLine(speedboat.Price); Console.ReadLine(); Console.WriteLine(speedboat.RaiseFlag()); }