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

            Assert.AreEqual(expected, result);
        }