예제 #1
0
        public void SubtractR_NonNumber_ShouldThrowExeption(string inputString)
        {
            var sut = new StringCalculator();

            Action result = () => sut.SubtractR(inputString);

            result.Should().Throw <ArgumentException>();
        }
예제 #2
0
        public void SubtractR_ValidNumbers_CorrectDifference(string inputString, decimal expectedResult)
        {
            var sut = new StringCalculator();

            var result = sut.SubtractR(inputString);

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