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

            Assert.Equal(expected, result);
        }
コード例 #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));
 }
コード例 #3
0
 public static int Humanize(this string str)
 {
     return(Romano.Humanize(str));
 }
コード例 #4
0
ファイル: RomanizerTests.cs プロジェクト: IDjinn/Romano
        public void ToRomanTest(ushort number, string expect)
        {
            var result = Romano.Romanize(number);

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

            Assert.Equal(expected, result);
        }