コード例 #1
0
        public void CalculateTest(double firstValue, double expected)
        {
            var calculator   = new LogE();
            var actualResult = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actualResult, 0.01);
        }
コード例 #2
0
        public void ExceptionLessThanZeroTest(double firstArgument)
        {
            var calculator = new LogE();

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