public void add_all_fixtures_from_this_assembly()
        {
            registry.AddFixturesFromThisAssembly();

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

            context.FindGrammar("DoSomething").ShouldBeOfType <ActionMethodGrammar>();
        }
Exemplo n.º 2
0
 public void RegisterFixtures(FixtureRegistry registry)
 {
     registry.AddFixturesFromThisAssembly();
 }
Exemplo n.º 3
0
 public override void RegisterFixtures(FixtureRegistry registry)
 {
     registry.AddFixturesFromThisAssembly();
 }
        public void SetUp()
        {
            container = new Container();
            var registry = new FixtureRegistry();
            registry.AddFixturesFromThisAssembly();
            registry.AddFixturesToContainer(container);

            observer = MockRepository.GenerateMock<IFixtureObserver>();
            var filter = new CompositeFilter<Type>();
            filter.Includes += t => t.Name.StartsWith("M");

            builder = new LibraryBuilder(observer, filter, new ObjectConverter());

            library = builder.Build(new TestContext(container));
        }