Headless.IntegrationTests.PageModelTests.ThrowsExceptionWhenFinalLocationDoesNotMatchTargetLocationTest C# (CSharp) Method

ThrowsExceptionWhenFinalLocationDoesNotMatchTargetLocationTest() private method

        public void ThrowsExceptionWhenFinalLocationDoesNotMatchTargetLocationTest()
        {
            using (var browser = new Browser())
            {
                Action action = () => browser.GoTo<RedirectTemporaryPage>();

                action.ShouldThrow<HttpOutcomeException>();
            }
        }