public static DotCoverAnalyseSettings ResetTargetSettings(this DotCoverAnalyseSettings toolSettings)
 {
     return(toolSettings
            .ResetTargetExecutable()
            .ResetTargetArguments()
            .ResetTargetWorkingDirectory());
 }
 public static DotCoverAnalyseSettings SetTargetSettings(this DotCoverAnalyseSettings toolSettings, ToolSettings targetSettings)
 {
     return(toolSettings
            .SetTargetExecutable(targetSettings.ToolPath)
            .SetTargetArguments(targetSettings.GetArguments().RenderForExecution())
            .SetTargetWorkingDirectory(targetSettings.WorkingDirectory));
 }
Example #3
0
        public static DotCoverAnalyseSettings NewInstance(this DotCoverAnalyseSettings toolSettings)
        {
            var newToolSettings = toolSettings.NewInstance <DotCoverAnalyseSettings>();

            newToolSettings.TestActionInternal = toolSettings.TestActionInternal;
            return(newToolSettings);
        }
Example #4
0
        public static DotCoverAnalyseSettings SetTestAction(this DotCoverAnalyseSettings toolSettings, Action testAction)
        {
            var capturedStartInfo = ProcessTasks.CaptureProcessStartInfo(testAction);

            return(toolSettings
                   .SetTargetExecutable(capturedStartInfo.ToolPath)
                   .SetTargetArguments(capturedStartInfo.Arguments)
                   .SetTargetWorkingDirectory(capturedStartInfo.WorkingDirectory));
        }
Example #5
0
        private static IProcess StartProcess(DotCoverAnalyseSettings toolSettings, ProcessSettings processSettings)
        {
            var testAction        = toolSettings.TestAction.NotNull("testAction != null");
            var capturedStartInfo = ProcessTasks.CaptureProcessStartInfo(testAction);

            toolSettings = toolSettings
                           .SetTargetExecutable(capturedStartInfo.ToolPath)
                           .SetTargetArguments(capturedStartInfo.Arguments)
                           .SetTargetWorkingDirectory(capturedStartInfo.WorkingDirectory);

            return(ProcessTasks.StartProcess(toolSettings, processSettings));
        }
Example #6
0
 public static DotCoverAnalyseSettings SetTestAction(this DotCoverAnalyseSettings toolSettings, Action testAction)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestActionInternal = testAction;
     return(toolSettings);
 }