public void Should_return_querywrapper_for_css_selector_match() { // Given var body = new BrowserResponseBodyWrapper(new Response { Contents = stream => { var writer = new StreamWriter(stream); writer.Write("<div>Outer and <div id='bar'>inner</div></div>"); writer.Flush(); } }, A.Dummy <BrowserContext>()); // When var result = body["#bar"]; // Then #if __MonoCS__ AssertExtensions.AllShouldContain(result, "inner", System.StringComparison.OrdinalIgnoreCase); #else result.AllShouldContain("inner"); #endif }