public void Test_Mc_VehicleType() { var mc = new ClassLibrary.MC(); string VehicleType = mc.VehicleType(); Assert.AreEqual("MC", VehicleType); }
public void Test_PriceMethod125kr() { // Arrange - Creating the object we will use for test var car = new ClassLibrary.MC(); // Act - call the method at object we will be testing double price = car.Price(); // Assert - test the value if is correct (Assert class is static) Assert.AreEqual(125, price); }