Example #1
0
        public static void DotCoverMerge(
            this ICakeContext context,
            IEnumerable <FilePath> sourceFiles,
            FilePath outputFile,
            DotCoverMergeSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            if (settings == null)
            {
                settings = new DotCoverMergeSettings();
            }

            // Create the DotCover merger.
            var merger = new DotCoverMerger(
                context.FileSystem, context.Environment,
                context.ProcessRunner, context.Tools);

            // Run DotCover report.
            merger.Merge(sourceFiles, outputFile, settings);
        }
        protected override void RunTool()
        {
            var tool = new DotCoverMerger(FileSystem, Environment, ProcessRunner, Tools);

            tool.Merge(SourceFiles, OutputFile, Settings);
        }