Example #1
0
        private void HumanizeTester(string romanNumber, int expected)
        {
            int result = Romano.Humanize(romanNumber);

            Assert.Equal(expected, result);
        }
Example #2
0
 public void InvalidRomanToHumanTest(string roman, Type @throw, RomanizerOptions options = RomanizerOptions.DEFAULT_STRICT)
 {
     Assert.Throws(@throw, () => Romano.Humanize(roman, options) as object);
     // Assert.False(Romano.IsValidRoman(roman));
 }
Example #3
0
 public static int Humanize(this string str)
 {
     return(Romano.Humanize(str));
 }
Example #4
0
        public void ToRomanTest(ushort number, string expect)
        {
            var result = Romano.Romanize(number);

            Assert.Equal(expect, result);
        }
Example #5
0
 public static string Romanizer(this double val)
 {
     return(Romano.Romanize(val));
 }
Example #6
0
 public static string Romanizer(this decimal val)
 {
     return(Romano.Romanize(val));
 }
Example #7
0
 public static string Romanizer(this float val)
 {
     return(Romano.Romanize(val));
 }
Example #8
0
 public static string Romanizer(this ulong val)
 {
     return(Romano.Romanize(val));
 }
Example #9
0
 public static int Humanize(this char str)
 {
     return(Romano.Humanize(str));
 }
Example #10
0
 public static string Romanizer(this ushort val)
 {
     return(Romano.Romanize(val));
 }
        private void HumanizeTester(string romanNumber, int expected)
        {
            var result = Romano.Humanize(romanNumber);//, RomanizerOptions.ALLOW_ALL_SUB);

            Assert.Equal(expected, result);
        }