Esempio n. 1
0
        public void LnCalculatorTests(double firstArgument, double result)
        {
            var calculator   = new Ln();
            var actualResult = calculator.Calculate(firstArgument);

            Assert.AreEqual(result, actualResult);
        }
Esempio n. 2
0
        public void LnTest(double first, double expected)
        {
            Ln     calculator = new Ln();
            double result     = calculator.Calculate(first);

            Assert.AreEqual(expected, result, 0.0001);
        }
Esempio n. 3
0
        public void CalculateLnTestStrong(double firstValue, double expected)
        {
            IOneArgumentCalculator calculator = new Ln();
            double result = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, result, 0.001);
        }
Esempio n. 4
0
        public void LnTest(double argument, double result)
        {
            var calculator = new Ln();
            var testResult = calculator.Calculate(argument);

            Assert.AreEqual(result, testResult);
        }
Esempio n. 5
0
        public void Calculate()
        {
            Ln     calculator = new Ln();
            double result     = calculator.Calculate(1);

            Assert.AreEqual(0, result, 0.001);
        }
Esempio n. 6
0
        public void Calculate(double input, double output)
        {
            var calculator = new Ln();
            var testResult = calculator.Calculate(input);
            var result     = output;

            Assert.AreEqual(testResult, result, 0.1);
        }
Esempio n. 7
0
        public void CalculateTest(
            double firstValue,
            double expected)

        {
            var calculator   = new Ln();
            var actualResult = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actualResult, 0.001);
        }
Esempio n. 8
0
        public void ExceptionLessThanZeroTest(double firstArgument)
        {
            var calculator = new Ln();

            Assert.Throws <Exception>(() => calculator.Calculate(firstArgument));
        }
Esempio n. 9
0
 public void NegativeLnTests()
 {
     var calculator = new Ln();
     var result     = calculator.Calculate(-4);
 }
Esempio n. 10
0
        public void ExceptionTest()
        {
            var calculator = new Ln();

            Assert.Throws <Exception>(() => calculator.Calculate(0));
        }