public void ConvertEmptyStringToZeroLengthByteArray()
        {
            var result = HexUtils.StringToByteArray(string.Empty);

            Assert.IsNotNull(result);
            Assert.AreEqual(0, result.Length);
        }
        public void ConvertStringToOneLengthByteArray()
        {
            var result = HexUtils.StringToByteArray("0f");

            Assert.IsNotNull(result);
            Assert.AreEqual(1, result.Length);
            Assert.AreEqual(0x0f, result[0]);
        }
        public void ConvertMixedCaseStringToTwoLengthByteArray()
        {
            var result = HexUtils.StringToByteArray("CaFe");

            Assert.IsNotNull(result);
            Assert.AreEqual(2, result.Length);
            Assert.AreEqual(0xca, result[0]);
            Assert.AreEqual(0xfe, result[1]);
        }