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