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