private void HumanizeTester(string romanNumber, int expected) { int result = Romano.Humanize(romanNumber); Assert.Equal(expected, result); }
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)); }
public static int Humanize(this string str) { return(Romano.Humanize(str)); }
public void ToRomanTest(ushort number, string expect) { var result = Romano.Romanize(number); Assert.Equal(expect, result); }
public static string Romanizer(this double val) { return(Romano.Romanize(val)); }
public static string Romanizer(this decimal val) { return(Romano.Romanize(val)); }
public static string Romanizer(this float val) { return(Romano.Romanize(val)); }
public static string Romanizer(this ulong val) { return(Romano.Romanize(val)); }
public static int Humanize(this char str) { return(Romano.Humanize(str)); }
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); }