示例#1
0
 public static void Main()
 {
     foreach (ProcessComponent pc in ShellProcess.Make())
     {
         Console.WriteLine(pc);
     }
 }
示例#2
0
    /// <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));
    }
示例#3
0
    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);
        }
    }
示例#4
0
 /// <summary>
 /// Test liczenia etapów dla procesu produkcji petardy powietrznej.
 /// </summary>
 public void TestShell()
 {
     Assertion.AssertEquals(4, ShellProcess.Make().GetStepCount());
 }
示例#5
0
 public void TestShell()
 {
     Assert.AreEqual(4, ShellProcess.Make().GetStepCount());
 }