Esempio n. 1
0
        public void CalculateTest(double first, double expected)
        {
            var calculator   = new Logarithm2();
            var actualResult = calculator.Calculate(first);

            Assert.AreEqual(expected, actualResult, 0.0001);
        }
Esempio n. 2
0
        public void ErrorTest()
        {
            var calculator = new Logarithm2();

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