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

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

		public void Given_session_type_with_wrong_constructor_args_When_loading_with_driver_Then_should_throw()
		{
			Action action = () => Threaded<DerivedSessionWithWrongArgs>
				.With<PhantomJS>();

			var expectedMessage = String.Format(Threaded<DerivedSessionWithWrongArgs>.InvalidSessionTypeFormat, typeof(DerivedSessionWithWrongArgs));

			action
				.ShouldThrow<ArgumentException>()
				.WithMessage(expectedMessage);
		}