private string TestCompileFromSource(ref int failCount, ref int testCount) { RuntimeCompiler compiler = new RuntimeCompiler(); List <string> source = new List <string>(); using (StreamReader reader = new StreamReader(new FileStream("HelloWorld.cs", FileMode.Open))) source.Add(reader.ReadToEnd()); compiler.SourceCode = source; testCount++; Assembly asm = null; string ret = ""; try { asm = compiler.CompileSource(); } catch (ArgumentException ae) { failCount++; ret += ae + "\n"; } ret += TestAssembly(ref failCount, ref testCount, asm); if (string.IsNullOrWhiteSpace(ret)) { return("No Errors"); } return(ret); }