public void ElementParsing()
        {
            var bsml = BSMLParser.LoadFrom(Assembly.GetExecutingAssembly(), "Tests", new StringReader(Literals.CustomElementBSML));

            var doc = bsml.Doc;

            var owner = typeof(MainPanelController);
            var state = new BSMLParser.ParseState {
                Ref = new MainPanelController(), Type = owner
            };

            var elems = bsml.ReadTree(new[] { doc.DocumentElement.FirstChild }, state).ToArray();

            VerifyCustomElementStringRootChildren(elems, owner);
        }
        public void AttributesParsing()
        {
            var bsml = BSMLParser.LoadFrom(Assembly.GetExecutingAssembly(), "Tests", new StringReader(Literals.CustomElementBSML));

            var doc = bsml.Doc;

            var ogOwner = typeof(MainPanelController);
            var state   = new BSMLParser.ParseState {
                Ref = new MainPanelController(), Type = ogOwner
            };
            var attrs = bsml.GetAttributes(doc.DocumentElement.FirstChild as XmlElement, ref state, out var hasController).ToArray();

            Assert.IsFalse(hasController);

            VerifyCustomElementStringAttributes(attrs, ogOwner);
        }