//[TestMethod] public void TestInt16Parse() { byte a = ExplainUtils.integerTo1Bytes(122)[0]; byte d = ExplainUtils.string2Bcd(a.ToString("X2"))[0]; Console.WriteLine(d); Assert.AreEqual(a, 0x7A); }