示例#1
0
        public void byte_array_to_base16_test()
        {
            var value = new byte[] { 0x01, 0xFF, 0x10 };

            Assert.AreEqual("01FF10", ByteUtils.ToBase16(value));
        }
示例#2
0
        public void byte_to_base16_test()
        {
            const byte value = 0x12;

            Assert.AreEqual("12", ByteUtils.ToBase16(value));
        }
示例#3
0
        public void ushort_to_base16_test()
        {
            const ushort value = 0x0123;

            Assert.AreEqual("0123", ByteUtils.ToBase16(value));
        }
示例#4
0
        public void empty_byte_array_to_base16_test()
        {
            var value = new byte[0];

            Assert.AreEqual(string.Empty, ByteUtils.ToBase16(value));
        }