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

            Assert.AreEqual(expected, actualResult, 0.001);
        }
コード例 #2
0
        public void NegativeCalculateTest()
        {
            var calculator = new LogarithmN();

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