public void TestGetItemByHTML_有内容()
        {
            string html = "<tag:Item DisplayName=\"规格介绍\" valuetype=\"Image\"><div></div></tag>";

            HTMLAnalyser analyser = new HTMLAnalyser();
            InputItem item = analyser.GetItemByHTML(html);
            Assert.AreEqual(InputType.Item, item.InputType);
            Assert.AreEqual("<tag:Item DisplayName=\"规格介绍\" valuetype=\"Image\"><div></div></tag>", item.OuterHTML);
            Assert.AreEqual("<div></div>", item.InnerHTML);

            Assert.AreEqual("规格介绍", item.DisplayName);
            Assert.AreEqual(default(string), item.ItemValue);
            Assert.AreEqual(default(string), item.DefaultValue);
            Assert.AreEqual(TOP.Common.AnalyseTool.ValueType.Image, item.ValueType);
        }
        public void TestGetItemByHTML_没有属性()
        {
            string html = "<tag:Item></tag>";

            HTMLAnalyser analyser = new HTMLAnalyser();
            InputItem item = analyser.GetItemByHTML(html);
            Assert.AreEqual(InputType.Item, item.InputType);
            Assert.AreEqual("<tag:Item></tag>", item.OuterHTML);
            Assert.AreEqual("", item.InnerHTML);

            Assert.AreEqual(default(string), item.DisplayName);
            Assert.AreEqual(default(string), item.ItemValue);
            Assert.AreEqual(default(string), item.DefaultValue);
            Assert.AreEqual(default(TOP.Common.AnalyseTool.ValueType), item.ValueType);
        }