private CaseModel ExeEvent_Section_Unicode_Create_Test() { return(new CaseModel() { NameSign = @"Unicode 生成测试", ExeEvent = () => { for (int i = 0; i < 2; i++) { int hexa_int_min_sign = CommonData.Unicode_Chinese_MIN_Decimal(); int hexa_int_max_sign = CommonData.Unicode_Chinese_MAX_Decimal(); int random_value = RandomData.R.Next(hexa_int_min_sign, hexa_int_max_sign + 1); string random_heax_string = ConvertTool.DecimalToHexadecimal(random_value); string unicode_format_str = ConvertTool.UnicodeFormatString(random_heax_string); string chinese_char = ConvertTool.UnicodeToGB2312(unicode_format_str); Print.WriteLine("{0} : {1} : {2} : {3}", random_value, random_heax_string, unicode_format_str, chinese_char); } }, }); }