Exemplo n.º 1
0
        private void HumanizeTester(string romanNumber, int expected)
        {
            int result = Romano.Humanize(romanNumber);

            Assert.Equal(expected, result);
        }
Exemplo n.º 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));
 }
Exemplo n.º 3
0
 public static int Humanize(this string str)
 {
     return(Romano.Humanize(str));
 }
Exemplo n.º 4
0
        public void ToRomanTest(ushort number, string expect)
        {
            var result = Romano.Romanize(number);

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

            Assert.Equal(expected, result);
        }