public void TestUpdateTotalDistance() { MainForm testForm = new MainForm(); float actual = testForm.updateTotalDistance(testForm.getDataGridViewTesting()); float expected = 3294; Assert.AreEqual(expected, actual, 0.001, "Incorrect Total Distance"); }
public void TestUpdateDistBtwnFill() { MainForm testForm = new MainForm(); float actual = testForm.updateDistBtwnFill(testForm.getDataGridViewTesting()); float expected = 326.6666667f; Assert.AreEqual(expected, actual, 0.001, "Incorrect Avg Dist Between Fills"); }
public void TestUpdateAvgFuelPrice() { MainForm testForm = new MainForm(); float actual = testForm.updateAvgFuelPrice(testForm.getDataGridViewTesting()); float expected = 94f; Assert.AreEqual(expected, actual, 0.001, "Incorrect Avg Fuel Price"); }
public void TestUpdateAvgFillCost() { MainForm testForm = new MainForm(); float actual = testForm.updateAvgFillCost(testForm.getDataGridViewTesting()); float expected = 46.5315f; Assert.AreEqual(expected, actual, 0.001, "Incorrect Avg Fill Cost"); }
public void TestUpdateYearDist() { MainForm testForm = new MainForm(); float actual = testForm.updateYearDist(testForm.getDataGridViewTesting()); float expected = 980; Assert.AreEqual(expected, actual, 0.001, "Incorrect Year Dist"); }
public void TestUpdateTotalFuelCons() { MainForm testForm = new MainForm(); float actual = testForm.updateTotalFuelCons(testForm.getDataGridViewTesting()); float expected = 551; Assert.AreEqual(expected, actual, 0.001, "Incorrect Total Fuel Consumption"); }