Beispiel #1
0
 public void SubmitOutput()
 {
     var r = new Submit() { SubmitCommand = new Command { CommandLine = "ls" } };
     Assert.AreEqual("submit(ls)", r.Print());
     var rp = JobParser.ParseSubmit.Parse(r.Print());
     Assert.AreEqual(r.SubmitCommand.CommandLine, rp.SubmitCommand.CommandLine);
 }
Beispiel #2
0
 public static string Print(this Submit r, bool prettyPrint = false)
 {
     return(r.Print(new StringBuilder(), prettyPrint: prettyPrint).ToString());
 }