public void TestAdd() { DummyStep p = new DummyStep(); _pipeline.Add(p); Assert.AreEqual(1, _pipeline.Count); }
public void TestRun() { DummyStep p1 = new DummyStep(); DummyStep p2 = new DummyStep(); _pipeline.Add(p1); _pipeline.Add(p2); Assert.AreEqual(0, p1.RunCount); Assert.AreEqual(0, p2.RunCount); _pipeline.Run(new CompilerContext(new CompilerParameters(), new Boo.Lang.Compiler.Ast.CompileUnit())); Assert.AreEqual(1, p1.RunCount); Assert.AreEqual(1, p2.RunCount); }