public void EmptyAssemblyTest() { var clrCodeGenerator = new ClrCodeGenerator("Output.exe"); clrCodeGenerator.StartModule("Foo"); clrCodeGenerator.EndModule(); clrCodeGenerator.Save(false); }
ClrCodeGenerator GetGeneratorForStatement() { string name = "Output_" + Guid.NewGuid().ToString("N") + ".exe"; var clrCodeGenerator = new ClrCodeGenerator(name); clrCodeGenerator.StartModule("Foo"); return clrCodeGenerator; }
private object GetStatementResult(ClrCodeGenerator clrCodeGenerator) { clrCodeGenerator.EndModule(); Assembly a = clrCodeGenerator.Save(false); Type foo = a.GetType("Foo"); MethodInfo main = foo.GetMethod("Test"); return main.Invoke(null, null); }
private Assembly GetResult(ClrCodeGenerator clrCodeGenerator) { return clrCodeGenerator.Save(false); }
ClrCodeGenerator GetGenerator() { string name = "Output_" + Guid.NewGuid().ToString("N") + ".exe"; var clrCodeGenerator = new ClrCodeGenerator(name); return clrCodeGenerator; }
private void EndIfTestGeneration(ClrCodeGenerator clrCodeGenerator) { clrCodeGenerator.Return("a"); clrCodeGenerator.EndMethod(); clrCodeGenerator.EndModule(); }