示例#1
0
        public void SimpleTest(double firstarg, double expected)
        {
            Log10  calc   = new Log10();
            double result = calc.Calc(firstarg);

            Assert.AreEqual(expected, result);
        }
示例#2
0
        public void LogarithmOfZeroTest()
        {
            Log10 calc = new Log10();

            Assert.Throws <Exception>(() => calc.Calc(-2)); //сбой теста
        }