Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CoreExtensions"/> class.
        /// </summary>
        public CoreExtensions()
        {
            this.suiteBuilders          = new SuiteBuilderCollection(this);
            this.testBuilders           = new TestCaseBuilderCollection(this);
            this.listeners              = new EventListenerCollection(this);
            this.testcaseProviders      = new TestCaseProviders(this);
            this.parameterDataProviders = new ParameterDataProviders(this);

            extensions.Add(suiteBuilders);
            extensions.Add(testBuilders);
            extensions.Add(listeners);
            extensions.Add(testcaseProviders);
            extensions.Add(parameterDataProviders);

            this.supportedTypes = ExtensionType.Core;

            // TODO: This should be somewhere central
//			string logfile = Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData );
//			logfile = Path.Combine( logfile, "NUnit" );
//			logfile = Path.Combine( logfile, "NUnitTest.log" );
//
//			appender = new log4net.Appender.ConsoleAppender();
////			appender.File = logfile;
////			appender.AppendToFile = true;
////			appender.LockingModel = new log4net.Appender.FileAppender.MinimalLock();
//			appender.Layout = new log4net.Layout.PatternLayout(
//				"%date{ABSOLUTE} %-5level [%4thread] %logger{1}: PID=%property{PID} %message%newline" );
//			appender.Threshold = log4net.Core.Level.All;
//			log4net.Config.BasicConfigurator.Configure(appender);
        }