APDUTest.APDUTest.TestAPDUinBERTLV C# (CSharp) Method

TestAPDUinBERTLV() private method

private TestAPDUinBERTLV ( ) : void
return void
        public void TestAPDUinBERTLV()
        {
            //create a big TLV
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 256; i++)
            {
                sb.Append("BB");
            }
            TLV expected = new TLV()
            {
                Tag = "09",
                Length = sb.Length / 2,
                Value = sb.ToString()

            };

            List<TLV> result = APDU.Parse("09820100" + sb.ToString());
            Helper.compareTLV(expected, result[0]);
        }