Esempio n. 1
0
        public void TanTest(double argument, double result)
        {
            var calculator = new Tan();
            var testResult = calculator.Calculate(argument);

            Assert.AreEqual(result, testResult, 0.1);
        }
Esempio n. 2
0
        public void CalculateTanTestStrong(double firstValue, double expected)
        {
            IOneArgumentCalculator calculator = new Tan();
            double result = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, result);
        }
Esempio n. 3
0
        public void Calculate()
        {
            Tan    calculator = new Tan();
            double result     = calculator.Calculate(0);

            Assert.AreEqual(0, result, 0.001);
        }
Esempio n. 4
0
        public void TanTest(double firstValue, double expected)
        {
            var calculator   = new Tan();
            var actualResult = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actualResult);
        }
Esempio n. 5
0
        public void TanTest(double first, double expected)
        {
            IOneCalculation calculator = new Tan();
            double          result     = calculator.Calculate(first);

            Assert.AreEqual(expected, result);
        }
Esempio n. 6
0
        public void CalculateTest(double argument, double result, double accracy)
        {
            var testingFunction = new Tan();
            var testResult      = testingFunction.Calculate(argument);

            Assert.AreEqual(result, testResult, accracy);
        }
Esempio n. 7
0
        public void TestTan(double firstArgument, double output)
        {
            var calculator = new Tan();
            var testResult = calculator.Calculate(firstArgument);

            Assert.AreEqual(output, testResult, 0.0000001);
        }
Esempio n. 8
0
        public void TanTest(double first, double expected)
        {
            ISingleCalculator calculate = new Tan();
            double            result    = calculate.Calculate(first);

            Assert.AreEqual(expected, result, 0.00001);
        }
Esempio n. 9
0
        public void Calculate(double input, double output)
        {
            var calculator = new Tan();
            var testResult = calculator.Calculate(input);
            var result     = output;

            Assert.AreEqual(testResult, result, 0.1);
        }
Esempio n. 10
0
        public void TangensNaNTest()
        {
            var calculator = new Tan();

            calculator.Calculate(90);
        }