Exemplo n.º 1
0
        public void Log10xCalculator()

        {
            Log10xCalculator calculator = new Log10xCalculator();

            Assert.Throws <Exception>(() => calculator.Calculate(0));
        }
Exemplo n.º 2
0
        public void Log10xCalculator(
            double firstValue,
            double expected)
        {
            Log10xCalculator calculator = new Log10xCalculator();
            double           actual     = calculator.Calculate(firstValue);

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