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);
}