public void CalculationAdditionTest(double firstArgument, double result) { var calculator = new CtgCalculator(); var actualResult = calculator.Calculate(firstArgument); Assert.AreEqual(result, actualResult, 0.00001); }
public void CalculateTest() { CtgCalculator calculator = new CtgCalculator(); Assert.AreEqual(0, Math.Round(calculator.Calculate(90))); Assert.AreEqual(1, Math.Round(calculator.Calculate(45))); }