public void DivadedShouldReturnArgumentExceptionWhenSecondNumberIsZero() { var simple = new simple(); Action calculateAct = () => simple.Divaded(2, 0); calculateAct.Should().Throw <ArgumentException>(); }
public void DivadedShouldReturnProperValue(double number1, double numer2, double result) { var simple = new simple(); var calculatedResult = simple.Divaded(number1, numer2); calculatedResult.Should().Be(result); }