示例#1
0
 public void ByteToHexWorks()
 {
     Assert.AreEqual("1020ff", MHString.ByteToHex(new byte[] { 16, 32, 255 }, false), "t1");
     Assert.AreEqual(string.Empty, MHString.ByteToHex(new byte[] { }, false), "t2");
     Assert.AreEqual("0001FF", MHString.ByteToHex(new byte[] { 0, 1, 255 }, true), "t3");
 }