public void GivenACommanderDefinitionType(string type) { Type = Type.GetType(type); Assert.IsNotNull(Type, "Target type not found. Did you use an assembly-qualified name of the type?"); TargetCommander = Toolbit.Parsers.Commander.Create(Type); SpecsCommanderTest.OnMethodInvoked = str => LastOutput = str; }
public static Commander Create <T>() => Commander.Create(typeof(T));