Exemplo n.º 1
0
            public void Correct_Number_Of_Tires()
            {
                var truck = new ElectricCar("Nissan", "Leaf");

                Assert.AreEqual(4, truck.NumOfTires);

                var motorcycle = new Motorcycle("Honda", "CTX700N");

                Assert.AreEqual(2, motorcycle.NumOfTires);
            }
Exemplo n.º 2
0
            public void Vehicles_Describe_Themselves()
            {
                var truck = new ElectricCar("Nissan", "Leaf");

                Assert.AreEqual("This is a Nissan Leaf", truck.ToString());

                var motorcycle = new Motorcycle("Honda", "CTX700N");

                Assert.AreEqual("This is a Honda CTX700N", motorcycle.ToString());
            }