コード例 #1
0
        public void LogXfromYByZeroTest()
        {
            var calc = new LogXfromY();

            Assert.Throws <Exception>(() => calc.Calculate(1, 0));
            Assert.Throws <Exception>(() => calc.Calculate(-3, 4));
        }
コード例 #2
0
        public void LogXfromYTest(double first, double second, double expected)
        {
            var    calc   = new LogXfromY();
            double result = calc.Calculate(first, second);

            Assert.AreEqual(expected, result);
        }