Exemple #1
0
        private static void TestSetTagSizeRawV2()
        {
            int inc = 10;

            byte[] raw0 = (byte[])TestTags.demoTag2_3.Clone();

            int size0 = TagUtils.TagSize(raw0);
            int size1 = size0 + inc;

            byte[] raw1 = TagUtils.RecreateTagWithNewTagSize(raw0, size1);

            UnitTest.Test(raw1.Length == raw0.Length + inc);
            UnitTest.Test(TagUtils.TagSize(raw1) == size1);
        }