APDUTest.APDUTest.TestAPDUin2BERTLV C# (CSharp) Method

TestAPDUin2BERTLV() private method

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

            };

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