示例#1
0
        public void DivadedShouldReturnArgumentExceptionWhenSecondNumberIsZero()
        {
            var simple = new simple();

            Action calculateAct = () => simple.Divaded(2, 0);

            calculateAct.Should().Throw <ArgumentException>();
        }
示例#2
0
        public void DivadedShouldReturnProperValue(double number1, double numer2, double result)
        {
            var simple = new simple();

            var calculatedResult = simple.Divaded(number1, numer2);

            calculatedResult.Should().Be(result);
        }