Inheritance: System.MarshalByRefObject
Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 public FolderRunnerStory() {
     reporter = new CollectingReporter();
     shell = new Shell(reporter, new FileSystemModel());
 }
Ejemplo n.º 3
0
 public FolderRunnerStory()
 {
     shell = new Shell(new NullReporter());
 }
Ejemplo n.º 4
0
 public FolderRunnerStory()
 {
     shell = new Shell(new NullReporter(), new FileSystemModel());
 }
Ejemplo n.º 5
0
 public void RunnerIsCalled()
 {
     int result = new Shell().Run(new [] {"-r", typeof(SampleRunner).FullName});
     Assert.AreEqual(SampleRunner.Result, result);
 }
Ejemplo n.º 6
0
 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);
 }