public void HexToStringTest() { string inSting = ConvertCode.StringToHex("初始化为适当的值", Separate.OX); string expected = "初始化为适当的值"; string actual = ConvertCode.HexToString(inSting); Assert.AreEqual(expected, actual); }
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); }