APDUTest.APDUTest.TestAPDUin1BERTLV C# (CSharp) Méthode

TestAPDUin1BERTLV() private méthode

private TestAPDUin1BERTLV ( ) : void
Résultat void
        public void TestAPDUin1BERTLV()
        {
            //create a big TLV
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 200; i++)
            {
                sb.Append("BB");
            }
            TLV expected = new TLV()
            {
                Tag = "09",                 // 09
                Length = sb.Length / 2,     // 100
                Value = sb.ToString()       // BB repeated 100 times

            };

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