public void ScriptContentIsCData() { const string html = "<script>//<br></script>"; var tokens = new TokenParser().Parse(html); Assert.Equal(3, tokens.Count()); }
public void ScriptWithAttributes() { const string html = "<script type=\"text/javascript\">//<br></script>"; var tokens = new TokenParser().Parse(html); Assert.Equal(5, tokens.Count()); }
public void StyleContentIsCData() { const string html = "<style>//<br></style>"; var tokens = new TokenParser().Parse(html); Assert.Equal(3, tokens.Count()); }