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

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

            Assert.Throws <Exception>(() => calculator.Calculate(-5, -1));
        }
コード例 #3
0
        public void CalculationError()
        {
            var calculator = new LogXY();

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