Пример #1
0
        public void Log10CalcTest(double first, double expected)
        {
            var    calc   = new Log10Calc();
            double result = calc.Calculate(first);

            Assert.AreEqual(expected, result, 0.001);
        }
Пример #2
0
        public void Againstzero()
        {
            var calc = new Log10Calc();

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