public void TransformerIsAppliedToCompileUnit() { StubTransformer transformer = new StubTransformer(); TransformerCompilerStep transformerStep = new TransformerCompilerStep(transformer); CompileUnit unit = new CompileUnit(); BooCompiler compiler = new BooCompiler(); compiler.Parameters.Pipeline = new CompilerPipeline(); compiler.Parameters.Pipeline.Insert(0, transformerStep); compiler.Run(unit); Assert.IsTrue(transformer.CompileUnitVisited); }
public void TransformerIsAppliedToCompileUnit() { StubTransformer transformer = new StubTransformer(); TransformerCompilerStep transformerStep = new TransformerCompilerStep(transformer); CompileUnit unit = new CompileUnit(); BooCompiler compiler = new BooCompiler(); compiler.Parameters.Pipeline = new CompilerPipeline(); compiler.Parameters.Pipeline.Insert(0, transformerStep); compiler.Run(unit); Assert.True(transformer.CompileUnitVisited); }