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); }
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); }
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)); }
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); }
public void setup_base() { convention = new DefaultConventions(); convention.Initialize(); }