/// <summary> /// Scan the input files for unit tests and, if specified, generate a test package source file. /// </summary> /// <returns>True if successful or False if there were no unit tests in the input files or a test package couldn't be created.</returns> public override bool Execute() { List <string> generatorExtensions = new List <string>(); Generator generator = new Generator(); generator.Extensions = GenerateTestConsumer.ToStringCollection(this.extensions); generator.InputFiles = GenerateTestConsumer.ToListOfString(this.inputFiles); generator.OutputFile = null != this.outputFile ? this.outputFile.ItemSpec : null; generator.Message += new MessageEventHandler(this.MessageHandler); bool success = generator.Generate(); this.inputFragments = GenerateTestConsumer.ToITaskItemArray(generator.InputFragments); return(success); }
/// <summary> /// Scan the input files for unit tests and, if specified, generate a test package source file. /// </summary> /// <returns>True if successful or False if there were no unit tests in the input files or a test package couldn't be created.</returns> public override bool Execute() { List <string> generatorExtensions = new List <string>(); Messaging.Instance.InitializeAppName("LXT", "LuxTasks.dll").Display += this.DisplayMessage; Generator generator = new Generator(); generator.Extensions = GenerateTestConsumer.ToStringCollection(this.extensions); generator.InputFiles = GenerateTestConsumer.ToListOfString(this.inputFiles); generator.OutputFile = null != this.outputFile ? this.outputFile.ItemSpec : null; bool success = generator.Generate(); this.inputFragments = GenerateTestConsumer.ToITaskItemArray(generator.InputFragments); return(success); }