public void setup() { var finder = MockRepository.GenerateMock <ISpecFinder>(); var builder = new ContextBuilder(finder); classContext = new Context("class"); builder.BuildMethodContexts(classContext, typeof(SpecClass)); }
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() { var finder = MockRepository.GenerateMock <ISpecFinder>(); finder.Stub(f => f.Except).Return(new SpecFinder().Except); finder.Stub(s => s.SpecClasses()).Return(new[] { typeof(SpecClass) }); var builder = new ContextBuilder(finder); classContext = new Context("class"); classContext.Type = typeof(SpecClass); builder.BuildMethodContexts(classContext, typeof(SpecClass)); classContext.Run(); }