Esempio n. 1
0
 public SourceDump(SourceDumperOptions options, UsageDefinition definition, IEnvironment environment,
     IDebugger debugger, IConsole console, IVersion versionGetter,
     IWriterFactory factory)
     : base(options, definition, environment, debugger, console, versionGetter)
 {
     _factory = factory;
 }
Esempio n. 2
0
 public void CheckArgumentsAreUsable()
 {
     var definition = new UsageDefinition();
     definition.Arguments.Add(new Argument {Name = "MyFirstArg"});
     Assert.IsNotNull(definition.Arguments);
     Assert.AreEqual(1, definition.Arguments.Count);
     Assert.IsNotNull(definition.Arguments[0]);
     Assert.AreEqual("MyFirstArg", definition.Arguments[0].Name);
 }
Esempio n. 3
0
 protected ProgramDefinition(Options options, UsageDefinition definition, IEnvironment environment,
     IDebugger debugger, IConsole console, IVersion versionGetter)
 {
     _options = options;
     _definition = definition;
     _environment = environment;
     _debugger = debugger;
     _console = console;
     _versionGetter = versionGetter;
 }
Esempio n. 4
0
 public ReferenceManager(IUnityContainer container, ReferenceOptions options, UsageDefinition definition,
     IEnvironment environment, IDebugger debugger, IConsole console, IVersion versionGetter)
     : base(options, definition, environment, debugger, console, versionGetter)
 {
     _container = container;
 }
Esempio n. 5
0
 public ConsoleMain(Options options, UsageDefinition definition, IEnvironment environment, IDebugger debugger, IConsole console, IVersion versionGetter)
     : base(options, definition, environment, debugger, console, versionGetter)
 {
 }
Esempio n. 6
0
 public void CheckNameIsTheProcessName()
 {
     var definition = new UsageDefinition();
     Assert.AreEqual(Process.GetCurrentProcess().ProcessName, definition.ExeName);
 }