Пример #1
0
        public static OpenCoverSettings SetTestAction(this OpenCoverSettings toolSettings, Action testAction)
        {
            var capturedStartInfo = ProcessTasks.CaptureProcessStartInfo(testAction);

            return(toolSettings
                   .SetTargetPath(capturedStartInfo.ToolPath)
                   .SetTargetArguments(capturedStartInfo.Arguments)
                   .SetTargetDirectory(capturedStartInfo.WorkingDirectory));
        }
Пример #2
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));
        }
Пример #3
0
        private static IProcess StartProcess(OpenCoverSettings toolSettings, ProcessSettings processSettings = null)
        {
            var testAction        = toolSettings.TestAction.NotNull("testAction != null");
            var capturedStartInfo = ProcessTasks.CaptureProcessStartInfo(testAction);

            toolSettings = toolSettings
                           .SetTargetPath(capturedStartInfo.ToolPath)
                           .SetTargetArguments(capturedStartInfo.Arguments)
                           .SetTargetDirectory(capturedStartInfo.WorkingDirectory);

            return(ProcessTasks.StartProcess(toolSettings, processSettings));
        }