Ejemplo n.º 1
0
        public void SetUp()
        {
            var registry = new FixtureRegistry();
            registry.AliasFixture<ExampleFixture>("Example");
            registry.AliasFixture<ArithmeticFixture>("Arithmetic");

            var runner = new TestRunner(registry);

            test = runner.CreateExample();
        }
        public void set_up_a_test_context_and_activate_a_fixture_by_alias()
        {
            registry.AliasFixture <SomethingFixture>("a");
            registry.AliasFixture <SomethingElseFixture>("b");

            context.LoadFixture("a", new StubTestPart());

            context.FindGrammar("DoSomething").ShouldBeOfType <ActionMethodGrammar>();

            context.LoadFixture("b", new StubTestPart());
            context.FindGrammar("Go").ShouldBeOfType <ValueCheckMethod>();
        }