public void byte_array_to_base16_test() { var value = new byte[] { 0x01, 0xFF, 0x10 }; Assert.AreEqual("01FF10", ByteUtils.ToBase16(value)); }
public void byte_to_base16_test() { const byte value = 0x12; Assert.AreEqual("12", ByteUtils.ToBase16(value)); }
public void ushort_to_base16_test() { const ushort value = 0x0123; Assert.AreEqual("0123", ByteUtils.ToBase16(value)); }
public void empty_byte_array_to_base16_test() { var value = new byte[0]; Assert.AreEqual(string.Empty, ByteUtils.ToBase16(value)); }