예제 #1
0
        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);
        }
예제 #2
0
 public FixtureGenerator()
 {
     _generator = new TestFixtureClassGenerator();
 }
예제 #3
0
 public FixtureGenerator()
 {
     _generator = new TestFixtureClassGenerator();
 }
        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);
        }