GetOutputStreams() публичный Метод

public GetOutputStreams ( string workingDirectory, string command, string param, List &standardOut, List &standardErr ) : int
workingDirectory string
command string
param string
standardOut List
standardErr List
Результат int
        public static string RunExecutableAndGetOutput(string solutionFile, string arguments)
        {
            string command = VsExperimentalInstance.GetVsTestConsolePath(VsExperimentalInstance.Versions.VS2015);
            string workingDir = "";

            var launcher = new TestProcessLauncher();
            List<string> standardOut;
            List<string> standardErr;
            launcher.GetOutputStreams(workingDir, command, arguments, out standardOut, out standardErr);

            string resultString = string.Join("\n", standardOut) + "\n\n" + string.Join("\n", standardErr);
            // ReSharper disable once AssignNullToNotNullAttribute
            string baseDir = Directory.GetParent(Path.GetDirectoryName(solutionFile)).FullName;
            resultString = NormalizeOutput(resultString, baseDir);

            return resultString;
        }
#pragma warning restore 162

        private string RunExecutableAndGetResultsFile(string arguments)
        {
            string command = VsExperimentalInstance.GetVsTestConsolePath(VsExperimentalInstance.Versions.VS2015);
            string workingDir = "";

            var launcher = new TestProcessLauncher();
            List<string> standardOut;
            List<string> standardErr;
            launcher.GetOutputStreams(workingDir, command, arguments, out standardOut, out standardErr);

            return ParseResultsFileFromOutput(standardOut);
        }