Ejemplo n.º 1
0
        public ContextBuilder(ISpecFinder finder, Conventions conventions)
        {
            this.finder = finder;

            contexts = new ContextCollection();

            this.conventions = conventions;
        }
Ejemplo n.º 2
0
 public SpecRunner(IAssemblyTypeLoader assemblyType, ISpecFinder finder,
                   IReportFactory factory, ParentClassRuleExecutor executor)
 {
     _assemblyType = assemblyType;
     _finder = finder;
     _factory = factory;
     _executor = executor;
 }
Ejemplo n.º 3
0
        public ContextBuilder(ISpecFinder finder, Tags tagsFilter, Conventions conventions)
        {
            contexts = new ContextCollection();

            this.finder = finder;

            this.conventions = conventions;

            this.tagsFilter = tagsFilter;
        }
Ejemplo n.º 4
0
        public void setup()
        {
            finder = MockRepository.GenerateMock<ISpecFinder>();

            finder.Stub(f => f.SpecClasses()).IgnoreArguments().Return(new[] { typeof(child), typeof(parent), typeof(sibling) });

            builder = new ContextBuilder(finder);

            builder.Contexts();
        }
        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);
        }
Ejemplo n.º 6
0
 public ContextBuilder(ISpecFinder finder, Conventions conventions)
     : this(finder, new Tags(), conventions)
 {
 }
Ejemplo n.º 7
0
 public ContextBuilder(ISpecFinder finder, Tags tagsFilter)
     : this(finder, new DefaultConventions())
 {
 }
Ejemplo n.º 8
0
 protected void GivenFilter(string filter)
 {
     finder = new SpecFinder(someDLL, reflector, filter);
 }
Ejemplo n.º 9
0
        protected void GivenDllContains(params Type[] types)
        {
            reflector = MockRepository.GenerateMock<IReflector>();

            reflector.Stub(r => r.GetTypesFrom("")).IgnoreArguments().Return(types);

            someDLL = "an nspec project dll";

            finder = new SpecFinder(someDLL, reflector);
        }
Ejemplo n.º 10
0
        public ContextBuilder(ISpecFinder finder)
        {
            this.finder = finder;

            contexts = new List<Context>();
        }