private void goButton_Click(object sender, EventArgs e) { if (hasRun) { Close(); } else { int result = new Shell(textReporter, new FileSystemModel()).Run(arguments); textReporter.Write(string.Format("{0}Result: {1}", Environment.NewLine, result)); hasRun = true; } }
public FolderRunnerStory() { reporter = new CollectingReporter(); shell = new Shell(reporter, new FileSystemModel()); }
public FolderRunnerStory() { shell = new Shell(new NullReporter()); }
public FolderRunnerStory() { shell = new Shell(new NullReporter(), new FileSystemModel()); }
public void RunnerIsCalled() { int result = new Shell().Run(new [] {"-r", typeof(SampleRunner).FullName}); Assert.AreEqual(SampleRunner.Result, result); }
public void CustomAppConfigIsUsed() { int result = new Shell().Run(new[] {"-a", "fitSharpTest.dll.alt.config", "-r", typeof (SampleRunner).FullName + "," + typeof (SampleRunner).Assembly.CodeBase} ); Assert.AreEqual(606, result); }