Example #1
0
File: TestUHF.cs Project: zgren/dp2
        static void TestDecodeUii(string hex, string text)
        {
            byte[] source = Element.FromHexString(hex);

            var result = UhfUtility.DecodeUII(source, 0, source.Length);

            //
            Assert.AreEqual(text, result);
        }
Example #2
0
File: TestUHF.cs Project: zgren/dp2
        public void Test_decode_uii_2()
        {
            byte[] source = Element.FromHexString(
                @"141c c04f c70b adb5 c6e2 da1d ed4d d319");

            var result = UhfUtility.DecodeUII(source, 0, source.Length);

            //
            Assert.AreEqual("CH-000134-1.12345678.31", result);
        }