Пример #1
0
        public void HexToStringTest()
        {
            string inSting  = ConvertCode.StringToHex("初始化为适当的值", Separate.OX);
            string expected = "初始化为适当的值";
            string actual   = ConvertCode.HexToString(inSting);

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void StringToHexTest()
        {
            string   str      = "TODO: 初始化为适当的值";
            Separate se       = Separate.Bank;
            string   actual   = ConvertCode.StringToHex(str, se);
            string   expected = ConvertCode.HexToString(actual);

            Assert.AreEqual(expected, str);
        }