Example #1
0
        public void ConvertRomanToInt_limit_3000_3000_returned()
        {
            string str      = "MMMCMXCIX";
            int    expected = 3000;

            RomanNumeralsConverter romanNumerals = RomanNumeralsConverter.GetConverter();
            int actual = romanNumerals.RomanToInt(str, (result) => result >= 3000);

            Assert.AreEqual(expected, actual);
        }