nly();
            this._stderr = stderr.ToList().AsReadOnly();
            this._outputVariables = outputVariables;
        }

        public ProcessResults(int exitCode, bool wasKilled, bool wasStarted, ProcessMonitor completedProcessMonitor)
            : this(exitCode, wasKilled, wasStarted, completedProcessMonitor.CapturedStdout, completedProcessMonitor.CapturedStderr, completedProcessMonitor.OutputVariables)
        {
        }

        public int ExitCode
        {
            get
            {
                return this._exitCode;
            }
        }

        public bool WasKilled
        {
            get
            {
                return this._wasKilled;
            }
        }

        public bool WasStarted
        {
            get
            {
                return this._wasStarted;
            }
        }

        public bool Failed
        {
            get
            {
                return this.ExitCode != 0;
            }
        }

        public IDictionary<string, string> OutputVariables
        {
            get
            {
                return this._outputVariables;
            }
        }

        public ReadOnlyCollection<string> Stdout
        {
            get
            {
                return this._stdout;
            }
        }

        public ReadOnlyCollection<string> Stderr
        {
            get
            {
                return this._stderr;
            }
        }
    }
}
