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

Given_session_already_loaded_When_loading_with_another_driver_Then_should_end_previous_session_driver_and_return_session_with_correct_driver() приватный метод

		public void Given_session_already_loaded_When_loading_with_another_driver_Then_should_end_previous_session_driver_and_return_session_with_correct_driver()
		{
			Session previousSession;

			Threaded<Session>
				.With<PhantomJS>()
				.Store(out previousSession, s => s)
				.Verify(x => x.Driver is PhantomJSDriver);

			Threaded<Session>
				.With<InternetExplorer>()
				.Verify(x => x.Driver is InternetExplorerDriver)
				.End();

			previousSession.Driver.Should().BeNull();
			previousSession.End();
		}