public void ConvertFromIntToRomanNumeral_IntsAreOutOfRange_Throws(int invalidNumber) { RomanNumeralsConverter conv = new RomanNumeralsConverter(); var ex = Assert.Throws <ArgumentException>(() => conv.ConvertFromIntToRomanNumeral(invalidNumber)); StringAssert.Contains("This isn't roman numeral", ex.Message); }
public void ConvertFromIntToRomanNumeral_ValidInts_ReturnsRomanNumeral(int number, string expected) { RomanNumeralsConverter conv = new RomanNumeralsConverter(); string result = conv.ConvertFromIntToRomanNumeral(number); Assert.AreEqual(expected, result); }