public void SingleThrowsExceptionWhenMultipleElementsFoundTest()
{
const string Html = @"
<html>
<head />
<body>
<form name='Test'>
<input type='text' name='Data' />
</form>
<form name='SecondTest'>
<input type='checkbox' name='IsSet' />
</form>
</body>
</html>
";
var page = new HtmlPageStub(Html);
Action action = () => page.Find<HtmlElement>().Singular();
action.ShouldThrow<InvalidHtmlElementMatchException>();
}