Headless.UnitTests.BrowserTests.BrowseToThrowsExceptionWithNullPageFactoryTest C# (CSharp) Method

BrowseToThrowsExceptionWithNullPageFactoryTest() private method

private BrowseToThrowsExceptionWithNullPageFactoryTest ( ) : void
return void
        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>();
            }
        }