public void SubtractR_NonNumber_ShouldThrowExeption(string inputString) { var sut = new StringCalculator(); Action result = () => sut.SubtractR(inputString); result.Should().Throw <ArgumentException>(); }
public void SubtractR_ValidNumbers_CorrectDifference(string inputString, decimal expectedResult) { var sut = new StringCalculator(); var result = sut.SubtractR(inputString); result.Should().Be(expectedResult); }