HtmlShouldExtensions
Extension methods, in the style of Should, that allow developers to make assertions about HTML fragments
A couple of simple examples
var fragment = "<p class=\"para\">lorem ipsum</p>";
fragment.ShouldMatchSelector("p.para").WithInnerHtml("lorem ipsum");
or
var fragment = "<p class=\"para\">lorem ipsum</p>";
fragment.ShouldMatchSelector("p").WithClass("para");
See the wiki for further documentation.
LICENSE
HtmlShouldExtensions is copyright Fourth Hospitality 2012 and is released under the MIT license: