예제 #1
0
 public void Calculate(double argument, double result)
 {
     var calculator = new Cos();
     var testResult = calculator.Calculate(argument);
     Assert.AreEqual(result, testResult);
 }
예제 #2
0
 public void CalculateTest(double argument, double result, double accracy)
 {
     var testingFunction = new Cos();
     var testResult = testingFunction.Calculate(argument);
     Assert.AreEqual(result, testResult, accracy);
 }