示例#1
0
        /*/// <summary>
         * /// Gets the code generator parameters.
         * /// </summary>
         * public ICodeGeneratorSetup CodeGeneratorParameters { get; private set; }*/

        #endregion

        /// <summary>
        /// Creates a new instance of the <see cref="GeneratorRunnerData"/> class.
        /// </summary>
        /// <param name="outputFolder">The output folder.</param>
        /// <param name="generatorType">Type of the generator.</param>
        /// <param name="inputAssemblyPath">The input assembly path.</param>
        /// <param name="mainNodes">The main nodes.</param>
        /// <param name="referencedAssemblies">The list of referenced assemblies.</param>
        public static GeneratorRunnerData Create(
            string outputFolder,
            Type generatorType,
            string inputAssemblyPath,
            IList <TestNode> mainNodes,
            IList <AssemblyName> referencedAssemblies)
        {
            var data = new GeneratorRunnerData(outputFolder, generatorType, inputAssemblyPath, mainNodes, referencedAssemblies);

            return(data);
        }
示例#2
0
 /// <summary>
 /// Generates the tests.
 /// </summary>
 /// <param name="data">The data that is necessary for test building.</param>
 public void GenerateTests(GeneratorRunnerData data)
 {
     Guard.NotNull(() => data, data);
     this.GenerateTests(
         data.OutputFolder, data.GeneratorType, data.InputAssemblyPath, data.RootNodes, data.ReferencedAssemblies);
 }