public void OstXYTest(double firstValue, double secondValue, double expected) { var calculator = new OstXY(); var actualResult = calculator.Calculate(firstValue, secondValue); Assert.AreEqual(expected, actualResult); }
public void ErrorTest() { var calculator = new OstXY(); Assert.Throws <Exception>((() => calculator.Calculate(1, 0))); }