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