Ejemplo n.º 1
0
        private void Prepare()
        {
            this._settingsFile = Path.GetTempFileName() + ".ncoversettings";
            this.Log(Level.Verbose, "Creating settings file: " + this._settingsFile);
            string str = NCoverSettingsFileWriter.BuildTempSettingsXmlFile(this._ncoverInfo, this._settingsFile);

            if (base.IsLogEnabledFor(Level.Verbose))
            {
                string str2 = File.ReadAllText(this._settingsFile);
                this.Log(Level.Verbose, "Contents of NCover settings file:");
                this.Log(Level.Verbose, str2);
            }
        }
Ejemplo n.º 2
0
        protected override void PrepareProcess(Process process)
        {
            this._settingsFile = Path.GetTempFileName() + ".ncoversettings";
            this.Log(Level.Verbose, "Creating settings file: " + this._settingsFile);
            string str = NCoverSettingsFileWriter.BuildTempSettingsXmlFile(this._ncoverInfo, this._settingsFile);

            this._programArguments = string.Format("{0} \"{1}\" {2}", str, this._settingsFile, this._additionalArgs);
            this.Log(Level.Verbose, "Working directory: {0}", new object[] { this.BaseDirectory });
            this.Log(Level.Verbose, "Arguments: {0}", new object[] { this._programArguments });
            if (base.IsLogEnabledFor(Level.Verbose))
            {
                string str2 = File.ReadAllText(this._settingsFile);
                this.Log(Level.Verbose, "Contents of NCover settings file:");
                this.Log(Level.Verbose, str2);
            }
            base.PrepareProcess(process);
        }