public void ChecksDivideByZeroException() { Assert.Throws <DivideByZeroException>(() => LinearInterpolation.CalculateInterpolationValue(new Point(0, 10), new Point(0, 10), 10)); }
public void ChecksCalculation(Point p1, Point p2, int value, double result) { Assert.Equal(LinearInterpolation.CalculateInterpolationValue(p1, p2, value), result); }