Ejemplo n.º 1
0
 public void T01_ToAndFromHex()
 {
     byte[] data = new byte[] { 8, 10, 250, 0, 255, 20, 48, 58, 64, 128, 170, 30, 180 };
     Assert.AreEqual("080AFA00FF14303A4080AA1EB4", BinaryUtility.ToHex(data).ToUpperInvariant());
     TestHelpers.AssertArrayEquals(data, BinaryUtility.ParseHex(BinaryUtility.ToHex(data)));
 }