public static void Main() { foreach (ProcessComponent pc in ShellProcess.Make()) { Console.WriteLine(pc); } }
/// <summary> /// The main entry point to this program. /// </summary> public static void Main() { ProcessComponent p = ShellProcess.Make(); PrettyVisitor v = new PrettyVisitor(); Console.WriteLine(v.GetPretty(p)); }
public static void Main() { CompositeEnumerator e = (CompositeEnumerator)ShellProcess.Make().GetEnumerator(); while (e.MoveNext()) { for (int i = 0; i < e.Depth(); i++) { Console.Write(" "); } Console.WriteLine(e.Current); } }
/// <summary> /// Test liczenia etapów dla procesu produkcji petardy powietrznej. /// </summary> public void TestShell() { Assertion.AssertEquals(4, ShellProcess.Make().GetStepCount()); }
public void TestShell() { Assert.AreEqual(4, ShellProcess.Make().GetStepCount()); }