Bumblebee.IntegrationTests.Setup.ThreadedSessionTests.Given_session_not_loaded_with_navigation_When_getting_current_block_Then_should_throw C# (CSharp) Метод

Given_session_not_loaded_with_navigation_When_getting_current_block_Then_should_throw() приватный Метод

		public void Given_session_not_loaded_with_navigation_When_getting_current_block_Then_should_throw()
		{
			Action action = () =>
				Threaded<Session>
					.CurrentBlock<LoggedOutPage>()
					.Verify(x => x.Session.Driver.PageSource.Contains("Username or Email Address"))
					.Session.End();

			action
				.ShouldThrow<NullReferenceException>()
				.WithMessage("You cannot access the CurrentBlock without first initializing the Session by calling With<TDriverEnvironment>().");
		}