public string Add(string numeral1, string numeral2) { var numeral1AsSingles = _convertToSingles.Convert(numeral1); var numeral2AsSingles = _convertToSingles.Convert(numeral2); var sumOfSingles = numeral1AsSingles + numeral2AsSingles; return(_convertToRomanNumerals.ConvertFromSingles(sumOfSingles)); }
public void ConvertRomanNumeralToSingles(string romanNumeral, int expectedNumerOfI) { var sut = new ConvertToSingles(); var result = sut.Convert(romanNumeral); Assert.That(result.Length, Is.EqualTo(expectedNumerOfI)); }