public void Case6_MotorcycleHeavy_RegularFee() { // arrange var car = new Vehicle(1000, vehicleType.motorcycle, false); //act var actual = CustomsGuard.GetFee(car, new DateTime(2016, 12, 19, 15, 0, 0)); // assert var expected = 700; Assert.AreEqual(expected, actual); }
public void Case7_Motorcycle_Weekend_DayTime() { // arrange var car = new Vehicle(1000, vehicleType.motorcycle, false); //act var actual = CustomsGuard.GetFee(car, new DateTime(2016, 12, 17, 15, 0, 0)); // assert var expected = 1400; Assert.AreEqual(expected, actual); }
public void Case4_Truck_RegularFee() { // arrange var car = new Vehicle(5000, vehicleType.truck, false); //act var actual = CustomsGuard.GetFee(car, new DateTime(2016, 12, 19, 15, 0, 0)); // assert var expected = 2000; Assert.AreEqual(expected, actual); }
public void Case3_LightCar_EarlyMorningTime() { // arrange var car = new Vehicle(900, vehicleType.car, false); //act var actual = CustomsGuard.GetFee(car, new DateTime(2016, 12, 19, 5, 59, 59)); // assert var expected = 250; Assert.AreEqual(expected, actual); }
public void Case2_5_RegularCar_Under1000kg() { // arrange var car = new Vehicle(999, vehicleType.car, false); //act var actual = CustomsGuard.GetFee(car, new DateTime(2016, 12, 19, 15, 0, 0)); // assert var expected = 500; Assert.AreEqual(expected, actual); }
public void Case8_Motorcycle_Environmental() { // arrange var car = new Vehicle(1000, vehicleType.motorcycle, true); //act var actual = CustomsGuard.GetFee(car, new DateTime(2020, 4, 13, 19, 0, 0)); // assert var expected = 0; Assert.AreEqual(expected, actual); }
public void Case7_Motorcycle_MidsummerEvening_NightTime() { // arrange var car = new Vehicle(1000, vehicleType.motorcycle, false); //act var actual = CustomsGuard.GetFee(car, new DateTime(2016, 6, 24, 19, 0, 0)); // assert var expected = 1400; Assert.AreEqual(expected, actual); }