/// <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);
        }
Пример #2
0
        /// <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);
        }
Пример #3
0
        protected override TestModel CreateTestModel()
        {
            PatternTestModel testModel = new PatternTestModel();

            return(testModel);
        }
Пример #4
0
 protected override TestModel CreateTestModel()
 {
     PatternTestModel testModel = new PatternTestModel();
     return testModel;
 }