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

assertTreeNodeAndTLV() private method

private assertTreeNodeAndTLV ( TLV expected, TreeNode actual ) : void
expected TLV
actual TreeNode
return void
        private void assertTreeNodeAndTLV(TLV expected, TreeNode actual)
        {
            Assert.AreEqual(expected.Tag, actual.Name);
            string[] nodeContent3 = (string[])actual.Tag;

            Assert.IsInstanceOfType(actual.Tag, typeof(string[]));
            Assert.AreEqual(makeEven(expected.Length.ToString()),nodeContent3[0]);
            Assert.AreEqual(expected.Value, nodeContent3[1]);
        }