Exemplo n.º 1
0
        public void CtgCalculatorTests(double firstArgument, double result)
        {
            var calculator   = new Ctg();
            var actualResult = calculator.Calculate(firstArgument);

            Assert.AreEqual(result, actualResult);
        }
Exemplo n.º 2
0
        public void CalculateCtgTestStrong(double firstValue, double expected)
        {
            IOneArgumentCalculator calculator = new Ctg();
            double result = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, result, 0.00001);
        }
Exemplo n.º 3
0
        public void CalculateTest(double value, double expected)
        {
            var calculator   = new Ctg();
            var actualResult = calculator.SingleCalculate(value);

            Assert.AreEqual(expected, actualResult, 0.00001);
        }
Exemplo n.º 4
0
        public void SimpleTest(double firstarg, double expected)
        {
            Ctg    calc   = new Ctg();
            double result = calc.Calc(firstarg);

            Assert.AreEqual(expected, result, 0.0000001);
        }
Exemplo n.º 5
0
        public void CtgTest(double argument, double result)
        {
            var calculator = new Ctg();
            var testResult = calculator.Calculate(argument);

            Assert.AreEqual(result, testResult, 0.1);
        }
Exemplo n.º 6
0
        public void CtgTest(double first, double expected)
        {
            IoneCalculate calc   = new Ctg();
            double        result = calc.Calculate(first);

            Assert.AreEqual(expected, result, 0.001);
        }
Exemplo n.º 7
0
        public void CalculateTest(double argument, double result, double accuracy)
        {
            var    calculator = new Ctg();
            double testResult = calculator.Calculate(argument);

            Assert.AreEqual(testResult, result, accuracy);
        }
Exemplo n.º 8
0
 public void CtgZero()
 {
     var calculator = new Ctg();
     calculator.Calculate(0);
 }
Exemplo n.º 9
0
 public void CalculateTest(double argument, double result, double accuracy)
 {
     var calculator = new Ctg();
     double testResult = calculator.Calculate(argument);
     Assert.AreEqual(testResult,result, accuracy);
 }
Exemplo n.º 10
0
        public void TgExceptionTest()
        {
            Ctg calc = new Ctg();

            Assert.Throws <Exception>(() => calc.Calc(0));
        }
Exemplo n.º 11
0
 public void CtgTest(double argument, double result)
 {
     var calculator = new Ctg();
     var testResult = calculator.Calculate(argument);
     Assert.AreEqual(result, testResult, 0.1);
 }
Exemplo n.º 12
0
        public void CtgZero()
        {
            var calculator = new Ctg();

            calculator.Calculate(0);
        }