/// <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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        protected override TestModel CreateTestModel()
        {
            PatternTestModel testModel = new PatternTestModel();

            return(testModel);
        }
Exemplo n.º 4
0
 protected override TestModel CreateTestModel()
 {
     PatternTestModel testModel = new PatternTestModel();
     return testModel;
 }