public void SubabruBrzMSRPTest2() { Vehicle subaruBrz = new Vehicle("Subaru", "BRZ", "BrzLimited", 2015); subaruBrz.GetColorOptionsFactoryPackage().SelectOne("WrBluePearl"); VehicleSummary summary = subaruBrz.GenerateSummary(); Assert.AreEqual((int)summary.MSRP, (int)36999); }
public void EvolutionGsrMSRPTest() { Vehicle LancerEvolutionGSR = new Vehicle("Mitsubishi", "Evolution", "GSR", 2015); LancerEvolutionGSR.GetOptionalFactoryPackage().SelectMulti("SightAndSound", "PremiumPackage"); LancerEvolutionGSR.GetInteriorOptionsFactoryPackage().SelectOne("BlackLeather"); LancerEvolutionGSR.GetColorOptionsFactoryPackage().SelectOne("RallyRed"); LancerEvolutionGSR.GetAccessories().SelectMulti("InteriorPackageGsr", "NavigationSystemPackage"); VehicleSummary summary = LancerEvolutionGSR.GenerateSummary(); Assert.AreEqual(summary.MSRP, 45250.0); }