public void BrowseToThrowsExceptionWithNullPageFactoryTest()
{
using (var browser = new Browser())
{
var location = new Uri("https://google.com");
var request = new HttpRequestMessage(HttpMethod.Get, location);
Action action = () => browser.Execute<TextPageWrapper>(request, HttpStatusCode.OK, null);
action.ShouldThrow<ArgumentNullException>();
}
}