Example #1
0
        public void CalculateTest(double firstValue, double expected)
        {
            var    calculator = new Calculator.OneArgument.Cos();
            double result     = calculator.Calculator(firstValue);

            Assert.AreEqual(expected, result, 0.001);
        }
Example #2
0
 public void Calculate(double argument, double result)
 {
     var calculator = new Cos();
     var testResult = calculator.Calculate(argument);
     Assert.AreEqual(result, testResult);
 }
Example #3
0
 public void CalculateTest(double argument, double result, double accracy)
 {
     var testingFunction = new Cos();
     var testResult = testingFunction.Calculate(argument);
     Assert.AreEqual(result, testResult, accracy);
 }