Exemplo n.º 1
0
        private LogWriterOptions GetLogWriterOptions(CTestAdapterOptionPage options)
        {
            if (null == options)
            {
                options = (CTestAdapterOptionPage)this.GetDialogPage(typeof(CTestAdapterOptionPage));
                options.LoadSettingsFromStorage();
            }
            var logOpts = new LogWriterOptions()
            {
                CurrentLogLevel = options.CurrentLogLevel,
                EnableLogFile   = options.EnableLogFile,
                LogFileName     = options.LogFileName,
                AppendToLogFile = options.AppendToLogFile
            };

            return(logOpts);
        }
Exemplo n.º 2
0
        public void SetOptions(CTestAdapterOptionPage options)
        {
            var logOpts = this.GetLogWriterOptions(options);

            this._log.SetOptions(logOpts);
        }