Exemplo n.º 1
0
        public void CalculateTest(double firstValue, double expected)
        {
            var calculator   = new NaturalLogarithmCalculator();
            var actualResult = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actualResult, 0.0001);
        }
        public void CathExceptions()
        {
            var calculator = new NaturalLogarithmCalculator();

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