예제 #1
0
        public void LogxyCalculator()

        {
            LogxyCalculator calculator = new LogxyCalculator();

            Assert.Throws <Exception>(() => calculator.Calculate(1, 0));
        }
예제 #2
0
파일: LogxyTest.cs 프로젝트: ElenaKuz/AAA
        public void CalculateTest(double firstValue, double secondValue, double expected)
        {
            var calculator   = new LogxyCalculator();
            var actualResult = calculator.Calculate(firstValue, secondValue);

            Assert.AreEqual(expected, actualResult);
        }
예제 #3
0
        public void LogxyCalculator()

        {
            LogxyCalculator calculator = new LogxyCalculator();
            double          actual     = calculator.Calculate(4, 2);

            Assert.AreEqual(2, actual);
        }
예제 #4
0
        public void LogxyCalculator(
            double firstValue,
            double secondValue,
            double expected)

        {
            LogxyCalculator calculator = new LogxyCalculator();
            double          actual     = calculator.Calculate(firstValue, secondValue);

            Assert.AreEqual(expected, actual);
        }
예제 #5
0
        public void ExceptionByBaseValueTest()
        {
            var calculator = new LogxyCalculator();

            Assert.Throws <Exception>(() => calculator.Calculate(1, 5));
        }
예제 #6
0
        public void ExceptionByNegativValueTest()
        {
            var calculator = new LogxyCalculator();

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