public void OnedivxCalcTest(double first, double expected) { var calc = new OnedivxCalc(); double result = calc.Calculate(first); Assert.AreEqual(expected, result, 0.001); }
public void Onedivzero() { var calc = new OnedivxCalc(); Assert.Throws <Exception>(() => calc.Calculate(0)); }