public void SetUpContext() { Generator = new TestFixtureClassGenerator(); Story story = GetStory(); Result = Generator.Generate(story, "test_namespace"); CompiledAssembly = new CodeCompiler().CompileInMemory(Result, new[] { typeof(Scenario).Assembly.Location, typeof(TestFixtureAttribute).Assembly.Location }); TestFixtureType = CompiledAssembly.GetTypes().First(); Instance = Activator.CreateInstance(TestFixtureType); }
public FixtureGenerator() { _generator = new TestFixtureClassGenerator(); }