public void should_handle_negativ_numbers() { //arrange var calc = new StringCalculator(); //act calc.Invoking(y => y.Add("-1,2")) .ShouldThrow<InvalidDataException>() .WithMessage("-1"); }