public void AddUsing() { ReductionCompiler comp = new ReductionCompiler(); Reduction r = new Reduction("return new ReductionCompiler();"); comp.Add(r); comp.AddReference(typeof(ReductionCompiler).Assembly); comp.AddUsing("Earley"); comp.Compile(); Assert.AreEqual(typeof(ReductionCompiler), r.Apply(new object[] {}).GetType()); }
public void AddUsingAfterCompile() { ReductionCompiler comp = new ReductionCompiler(); comp.Compile(); comp.AddUsing("System"); }
public void AddNullUsing() { ReductionCompiler comp = new ReductionCompiler(); comp.AddUsing(null); }