예제 #1
0
        public void CalculateTest(double firstValue, double expected)
        {
            var calculator   = new Cos();
            var actualResult = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actualResult, 0.01);
        }
예제 #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);
        }
예제 #3
0
        public void TestCos(double firstArgument, double output)
        {
            var calculator = new Cos();
            var testResult = calculator.Calculate(firstArgument);

            Assert.AreEqual(output, testResult, 0.0000001);
        }
예제 #4
0
        public void CosTest(double first, double expected)
        {
            IOneCalculation calculator = new Cos();
            double          result     = calculator.Calculate(first);

            Assert.AreEqual(expected, result);
        }
예제 #5
0
        public void AddTest(double first, double expected)
        {
            Cos    calculator = new Cos();
            double result     = calculator.Calculate(first);

            Assert.AreEqual(expected, result, 0.0001);
        }
예제 #6
0
        public void CalculateTest(double argument, double result)
        {
            var calculator = new Cos();
            var testResult = calculator.Calculate(argument);

            Assert.AreEqual(result, testResult);
        }
예제 #7
0
        public void CosTest(double first, double expected)
        {
            IoneCalculate calc   = new Cos();
            double        result = calc.Calculate(first);

            Assert.AreEqual(expected, result, 0.001);
        }
예제 #8
0
        public void CosCalculatorTests(double firstArgument, double result)
        {
            var calculator   = new Cos();
            var actualResult = calculator.Calculate(firstArgument);

            Assert.AreEqual(result, actualResult, 0.0001);
        }
예제 #9
0
        public void CosTest(double first, double expected)
        {
            ISingleCalculator calculate = new Cos();
            double            result    = calculate.Calculate(first);

            Assert.AreEqual(expected, result, 0.00001);
        }
예제 #10
0
        public void Calculate()
        {
            Cos    calculator = new Cos();
            double result     = calculator.Calculate(0);

            Assert.AreEqual(1, result, 0.001);
        }
예제 #11
0
        public void CalculateCosTestStrong(double firstValue, double expected)
        {
            IOneArgumentCalculator calculator = new Cos();
            double result = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, result, 0.00001);
        }
예제 #12
0
        public void Calculate(double input, double output)
        {
            var calculator = new Cos();
            var testResult = calculator.Calculate(input);
            var result     = output;

            Assert.AreEqual(testResult, result, 0.1);
        }