Exemplo n.º 1
0
        public void SetupGenerator()
        {
            generator = new AssemblyGenerator(new DoNothingCompileStrategy());

            for (var i = 0; i < 50; i++)
            {
                generator.AddFile($"Benchmark{i}.cs", @"
namespace Blueprint.Benchmarks
{
    public class CompileBenchmarks{i}
    {
        public void Scenario1()
        {
            System.Console.WriteLine(""Hey!!"");
        }
    }
}".Replace("{i}", i.ToString()));
            }

            generationRules = new GenerationRules {
                AssemblyName = "Blueprint.Benchmarks"
            };
        }