public void TestVehiculeCarOresundTypeMethod() { string LiscencePlate = "Ac14369"; DateTime Date = new DateTime(2020, 8, 14); bool BroBizz = false; double ActualPrice = 410; CarOresund c = new CarOresund(LiscencePlate, Date, BroBizz, ActualPrice); string theType = c.VehiculeType(); Assert.AreEqual("Oresund Car", theType); }
public void McOresundCarBroBizzPrice() { string LiscencePlate = "Ac14369"; DateTime Date = new DateTime(2020, 8, 14); double ActualPrice = 410; CarOresund c = new CarOresund(LiscencePlate, Date, BroBizz: true, ActualPrice); double Price = c.Price(); Assert.AreEqual(161, Price); }