예제 #1
0
        public void GetInfoNullMaxSpeed_Test()
        {
            Scooter scooter = new Scooter("MegaScooter 3000", "SC000001");

            scooter.Engine       = new Engine(25.5, 0.8, EngineType.Electrical, "EN000004");
            scooter.Chassis      = new Chassis(2, 150, "CH000004");
            scooter.Transmission = new Transmission(TransmissionType.Mechanical, 6, "Disney");
            scooter.Weight       = 63;
            Assert.DoesNotThrow(() => scooter.GetInfo());
        }
예제 #2
0
        public void GetInfoNullEngine_Test()
        {
            Scooter scooter = new Scooter("MegaScooter 3000", "SC000001");

            scooter.Chassis      = new Chassis(2, 150, "CH000004");
            scooter.Transmission = new Transmission(TransmissionType.Mechanical, 6, "Disney");
            scooter.MaxSpeed     = 60;
            scooter.Weight       = 63;
            Assert.DoesNotThrow(() => scooter.GetInfo());
        }