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

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

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