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

            Assert.AreEqual(expected, actualResult);
        }
Exemplo n.º 2
0
        public void ExceptionByNegativValueTest()
        {
            var calculator = new Log10Calculator();

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