예제 #1
0
        public void SimpleTest(double firstarg, double expected)
        {
            Ln     calc   = new Ln();
            double result = calc.Calc(firstarg);

            Assert.AreEqual(expected, result, 0.0001);
        }
예제 #2
0
        public void BaseLogarithmOfZeroTest()
        {
            Ln calc = new Ln();

            Assert.Throws <Exception>(() => calc.Calc(-3));
        }