public override void Build(nspec unused = null) { BuildMethodLevelBefore(); BuildMethodLevelBeforeAll(); BuildMethodLevelAct(); BuildMethodLevelAfter(); BuildMethodLevelAfterAll(); try { var nspec = SpecType.CreateInstanceAs <nspec>(); nspec.tagsFilter = tagsFilter ?? new Tags(); base.Build(nspec); } catch (Exception ex) { cantCreateInstance = true; AddFailingExample(ex); } }
public override void Build(nspec unused = null) { BeforeAllChain.BuildMethodLevel(classHierarchy); BeforeChain.BuildMethodLevel(classHierarchy); ActChain.BuildMethodLevel(classHierarchy); AfterChain.BuildMethodLevel(classHierarchy); AfterAllChain.BuildMethodLevel(classHierarchy); try { var nspec = SpecType.CreateInstanceAs <nspec>(); nspec.tagsFilter = tagsFilter ?? new Tags(); base.Build(nspec); } catch (Exception ex) { cantCreateInstance = true; AddFailingExample(ex); } }