Example #1
0
 /// <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();
 }
Example #2
0
        public void GetInfo_Test()
        {
            Transmission transmission = new Transmission(TransmissionType.Mechanical, 5, "Nestle1");

            Assert.DoesNotThrow(() => transmission.GetInfo());
        }