Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public FixtureGenerator()
 {
     _generator = new TestFixtureClassGenerator();
 }
Exemplo n.º 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);
        }