public void checkFindLineResultWithOppositeParams() { MainPage edgeDetection = new MainPage(); var p1 = new Point(200, 100); var p2 = new Point(100, 200); var actualResult = edgeDetection.findLineLength(p1, p2); Assert.IsTrue(actualResult > 100); }
public void checkCalibrateResultWithZeroParams() { MainPage edgeDetection = new MainPage(); var calibrationString = "404"; var calibrationLength = "0"; var actualResult = edgeDetection.calibrate(calibrationString, calibrationLength); Assert.AreEqual(404, actualResult); }
public void checkFindLineResult() { MainPage edgeDetection = new MainPage(); var p1 = new Point(100, 100); var p2 = new Point(200, 100); var actualResult = edgeDetection.findLineLength(p1, p2); Assert.AreEqual(100, actualResult); }
public void checkCalibrateResult() { MainPage edgeDetection = new MainPage(); var calibrationString = "404"; var calibrationLength = "5"; var actualResult = edgeDetection.calibrate(calibrationString, calibrationLength); Assert.AreEqual(80.8, actualResult); }