Beispiel #1
0
        public void CalculateTest(double firstArgument, double expectedResult)
        {
            var calculator   = new ReversiveCalculator();
            var actualResult = calculator.Calculate(firstArgument);

            Assert.AreEqual(expectedResult, actualResult, 0.001);
        }
Beispiel #2
0
        public void ExceptionTest()
        {
            var calculator = new ReversiveCalculator();

            Assert.Throws <DivideByZeroException>(() => calculator.Calculate(0));
        }