示例#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;
 }
示例#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);
 }
示例#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;
 }
示例#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;
 }
示例#5
0
文件: Program.cs 项目: stormleoxia/lx
 public ConsoleMain(Options options, UsageDefinition definition, IEnvironment environment, IDebugger debugger, IConsole console, IVersion versionGetter)
     : base(options, definition, environment, debugger, console, versionGetter)
 {
 }
示例#6
0
 public void CheckNameIsTheProcessName()
 {
     var definition = new UsageDefinition();
     Assert.AreEqual(Process.GetCurrentProcess().ProcessName, definition.ExeName);
 }