/// <summary> /// Gets info for the current vehicle. /// </summary> public void GetInfo() { Console.WriteLine($"\n Vehicle type is {VehicleType} and specs are next:"); Engine.GetInfo(); Chassis.GetInfo(); Transmission.GetInfo(); }
public void GetInfo_Test() { Transmission transmission = new Transmission(TransmissionType.Mechanical, 5, "Nestle1"); Assert.DoesNotThrow(() => transmission.GetInfo()); }