public void builds_an_instance_with_no_ctor_parameters() { var creator = new ActivatorCommandCreator(); var instance = creator.Create(typeof(NoParamsCommand)); instance.ShouldBeOfType <NoParamsCommand>(); }
public void throws_if_the_ctor_has_parameters() { var creator = new ActivatorCommandCreator(); Assert.Throws <MissingMethodException>(() => creator.Create(typeof(ParamsCommand))); }