Example #1
0
 public void ShouldRaiseError(string numeral)
 {
     Assert.ThrowsException <ArgumentException>(() => NumeralConverter.ConvertRomanNumeralToInt(numeral));
 }
Example #2
0
        public void ShouldConvertProperly(string numeral, int expected)
        {
            var result = NumeralConverter.ConvertRomanNumeralToInt(numeral);

            Assert.AreEqual(expected, result);
        }