Example #1
0
        public void SpecificationTest5()
        {
            var document = new JumonyParser().LoadDocument( Path.Combine( Environment.CurrentDirectory, "SpecificationTest5.html" ) );

              //Assert.AreEqual( document.DocumentDeclaration, "<!DOCTYPE html>", "HTML 声明解析失败" );

              var specials = document.DescendantNodes().OfType<IHtmlSpecial>().ToArray();

              Assert.AreEqual( specials.Count(), 4, "特殊标签解析数量不对" );
        }