コード例 #1
0
ファイル: DotCoverAliases.cs プロジェクト: zokiz/cake
        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);
        }
コード例 #2
0
        protected override void RunTool()
        {
            var tool = new DotCoverMerger(FileSystem, Environment, ProcessRunner, Tools);

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