Example #1
0
        public void CalculatorTest(double firstValue, double expected)
        {
            var calculator   = new Exponent();
            var actualResult = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actualResult);
        }
Example #2
0
        public void ExponentTest(double value, double expected)
        {
            var calculator   = new Exponent();
            var actualResult = calculator.Calculate(value);

            Assert.AreEqual(expected, actualResult, 0.001);
        }