Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 public void AddUsingAfterCompile()
 {
     ReductionCompiler comp = new ReductionCompiler();
     comp.Compile();
     comp.AddUsing("System");
 }
Ejemplo n.º 3
0
 public void AddNullUsing()
 {
     ReductionCompiler comp = new ReductionCompiler();
     comp.AddUsing(null);
 }