public void FailedCalculate(string parkingLot, string entryDate, string entryTime, bool entryAM, string leavingDate, string leavingTime, bool LeavingAM) { ParkingCostCalculatorClass PCCC = new ParkingCostCalculatorClass(_driver); PCCC.SetParkingLot(parkingLot); PCCC.SetEntry(entryDate, entryTime, entryAM); PCCC.SetLeaving(leavingDate, leavingTime, LeavingAM); PCCC.Calculate(); Assert.Equal(_driver.FindElement(By.CssSelector("b")).Text, "NAN"); }
public void Calculate() { ParkingCostCalculatorClass PCCC = new ParkingCostCalculatorClass(_driver); PCCC.SetParkingLot("Short-Term Parking"); PCCC.SetEntry("6/1/2020", "12:00", false); PCCC.SetLeaving("6/2/2020", "2:00", true); PCCC.Calculate(); Assert.Equal(_driver.FindElement(By.CssSelector("b")).Text, "$ 24.00"); }