/// <summary> /// Creates a test model builder. /// </summary> /// <param name="reflectionPolicy">The reflection policy.</param> /// <param name="testModel">The underlying test model.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="reflectionPolicy"/> /// or <paramref name="testModel"/> is null.</exception> public DefaultTestModelBuilder(IReflectionPolicy reflectionPolicy, PatternTestModel testModel) { if (reflectionPolicy == null) throw new ArgumentNullException("reflectionPolicy"); if (testModel == null) throw new ArgumentNullException("testModel"); this.reflectionPolicy = reflectionPolicy; this.testModel = testModel; rootTestBuilder = new DefaultTestBuilder(this, testModel.RootTest); }
/// <summary> /// Creates a test model builder. /// </summary> /// <param name="reflectionPolicy">The reflection policy.</param> /// <param name="testModel">The underlying test model.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="reflectionPolicy"/> /// or <paramref name="testModel"/> is null.</exception> public DefaultTestModelBuilder(IReflectionPolicy reflectionPolicy, PatternTestModel testModel) { if (reflectionPolicy == null) { throw new ArgumentNullException("reflectionPolicy"); } if (testModel == null) { throw new ArgumentNullException("testModel"); } this.reflectionPolicy = reflectionPolicy; this.testModel = testModel; rootTestBuilder = new DefaultTestBuilder(this, testModel.RootTest); }
protected override TestModel CreateTestModel() { PatternTestModel testModel = new PatternTestModel(); return(testModel); }
protected override TestModel CreateTestModel() { PatternTestModel testModel = new PatternTestModel(); return testModel; }