예제 #1
0
        public void setup()
        {
            conventions = new DefaultConventions();

            conventions.Initialize();

            parentContext = new ClassContext(typeof(parent_before), conventions);

            childContext = new ClassContext(typeof(child_before), conventions);

            parentContext.AddContext(childContext);
        }
예제 #2
0
        public void setup_base()
        {
            finder = MockRepository.GenerateMock <ISpecFinder>();

            typesForFinder = new List <Type>();

            finder.Stub(f => f.SpecClasses()).IgnoreArguments().Return(typesForFinder);

            DefaultConventions conventions = new DefaultConventions();

            conventions.Initialize();

            builder = new ContextBuilder(finder, conventions);
        }
예제 #3
0
        public void setup()
        {
            var finder = MockRepository.GenerateMock <ISpecFinder>();

            DefaultConventions defaultConvention = new DefaultConventions();

            defaultConvention.Initialize();

            var builder = new ContextBuilder(finder, defaultConvention);

            classContext = new Context("class");

            builder.BuildMethodContexts(classContext, typeof(SpecClass));
        }
예제 #4
0
        public void setup_base()
        {
            finder = new Mock <ISpecFinder>();

            typesForFinder = new List <Type>();

            finder.Setup(f => f.SpecClasses()).Returns(typesForFinder);

            DefaultConventions conventions = new DefaultConventions();

            conventions.Initialize();

            builder = new ContextBuilder(finder.Object, conventions);
        }
예제 #5
0
        public void setup_base()
        {
            convention = new DefaultConventions();

            convention.Initialize();
        }