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

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

            contexts = new ContextCollection();

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

            this.finder = finder;

            this.conventions = conventions;

            this.tagsFilter = tagsFilter;
        }
Esempio n. 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());
            }
        }
Esempio n. 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();
 }
Esempio n. 8
0
        private ClassContext CreateClassContext(Type type, Conventions conventions)
        {
            var context = new ClassContext(type, conventions);

            BuildMethodContexts(context, type);

            BuildMethodLevelExamples(context, type);

            return context;
        }