Example #1
0
        public void SimpleTest(double arg, double expected)
        {
            Ln     calc   = new Ln();
            double result = calc.Action(arg);

            Assert.AreEqual(expected, result);
        }
Example #2
0
        public void Negative()
        {
            Ln calc = new Ln();

            Assert.Throws <Exception>(() => calc.Action(-9));
        }
Example #3
0
        public void Zero()
        {
            Ln calc = new Ln();

            Assert.Throws <Exception>(() => calc.Action(0));
        }