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

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

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