Example #1
0
        public ClassContext(Type type, Conventions conventions = null)
            : base(type.Name, 0)
        {
            this.type = type;

            this.conventions = conventions ?? new DefaultConventions().Initialize();
        }
Example #2
0
        public ContextBuilder(ISpecFinder finder, Conventions conventions)
        {
            this.finder = finder;

            contexts = new ContextCollection();

            this.conventions = conventions;
        }
Example #3
0
        public ContextBuilder(ISpecFinder finder, Tags tagsFilter, Conventions conventions)
        {
            contexts = new ContextCollection();

            this.finder = finder;

            this.conventions = conventions;

            this.tagsFilter = tagsFilter;
        }
Example #4
0
        public ClassContext(Type type, Conventions conventions = null, Tags tagsFilter = null, string tags = null)
            : base(type.CleanName(), tags)
        {
            this.type = type;

            this.conventions = conventions ?? new DefaultConventions().Initialize();

            this.tagsFilter = tagsFilter;

            if (type != typeof(nspec))
            {
                classHierarchyToClass.AddRange(type.GetAbstractBaseClassChainWithClass());
            }
        }
Example #5
0
 public ContextBuilder(ISpecFinder finder, Conventions conventions)
     : this(finder, new Tags(), conventions)
 {
 }
        public void setup_base()
        {
            defaultConvention = new DefaultConventions();

            defaultConvention.Initialize();
        }
 public void Setup()
 {
     conventions = new DefaultConventions();
 }
Example #8
0
        private ClassContext CreateClassContext(Type type, Conventions conventions)
        {
            var context = new ClassContext(type, conventions);

            BuildMethodContexts(context, type);

            BuildMethodLevelExamples(context, type);

            return context;
        }