APDUTest.TreeViewAdapter.TreeViewAdapterTest.TLV_Convert__1Level_Nominal C# (CSharp) Method

TLV_Convert__1Level_Nominal() private method

private TLV_Convert__1Level_Nominal ( ) : void
return void
        public void TLV_Convert__1Level_Nominal()
        {
            TLV data = new TLV() { Tag = "AB", Length = 1, Value = "aa" };
            TreeNode res = DataConverter.fromTLV(data);
            Assert.AreEqual("AB", res.Name);

            Assert.IsInstanceOfType(res.Tag,typeof(string[]));
            string[] nodeContent = (string[])res.Tag;
            Assert.AreEqual("01", nodeContent[0]);
            Assert.AreEqual("aa", nodeContent[1]);
        }