public ClassContext(Type type, Conventions conventions = null) : base(type.Name, 0) { this.type = type; this.conventions = conventions ?? new DefaultConventions().Initialize(); }
public ContextBuilder(ISpecFinder finder, Conventions conventions) { this.finder = finder; contexts = new ContextCollection(); this.conventions = conventions; }
public ContextBuilder(ISpecFinder finder, Tags tagsFilter, Conventions conventions) { contexts = new ContextCollection(); this.finder = finder; this.conventions = conventions; this.tagsFilter = tagsFilter; }
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()); } }
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(); }
private ClassContext CreateClassContext(Type type, Conventions conventions) { var context = new ClassContext(type, conventions); BuildMethodContexts(context, type); BuildMethodLevelExamples(context, type); return context; }