static void ThingsACoupeCanDo() { Coupe coupe = new Coupe(); Console.WriteLine("-----does a coupe make noise?-----"); bool output1 = coupe.MakesNoise; Console.WriteLine(output1); Console.WriteLine("-----does a coupe start?-----"); bool output2 = coupe.Starts; Console.WriteLine(output2); Console.WriteLine("----------Does a coupe honk?-------------"); Console.WriteLine(coupe.Honk()); Console.WriteLine("-----Does a coupe turn on?-----"); Console.WriteLine(coupe.TurnOn()); Console.WriteLine("-----Does the coupe drive?-----"); Console.WriteLine(coupe.DriveForward()); Console.WriteLine("------Does the coupe go in reverse?------"); Console.WriteLine(coupe.Reverse()); Console.WriteLine("------Does a coupe turn off?------"); Console.WriteLine(coupe.TurnOff()); Console.WriteLine("price:"); Console.WriteLine(coupe.Price); }
public void CoupeCanDrive() { //arrange Coupe coupe = new Coupe(); //act string output = coupe.DriveForward(); //assert Assert.Equal("The car drives forward", output); }