Пример #1
0
        public void CalculationTest()
        {
            IOneArgumentCalculator calculator = new COSCalculator();
            double result = calculator.Calculate(45);

            Assert.AreEqual(0.5253, result, 0.0001);
        }
Пример #2
0
 public void COSCalculator(
     double firstValue,
     double expected)
 {
     COSCalculator calculator = new COSCalculator();
     double actual = calculator.Calculate(firstValue);
     Assert.AreEqual(expected, actual, 0.001);
 }