예제 #1
0
		public CoreExtensions() 
		{
			this.suiteBuilders = new SuiteBuilderCollection(this);
			this.testBuilders = new TestCaseBuilderCollection(this);
			this.testDecorators = new TestDecoratorCollection(this);
			this.listeners = new EventListenerCollection(this);

			this.extensions = new IExtensionPoint[]
				{ suiteBuilders, testBuilders, testDecorators, listeners };
			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);
		}
예제 #2
0
        public CoreExtensions()
        {
            this.suiteBuilders = new SuiteBuilderCollection();
            this.testBuilders = new TestCaseBuilderCollection();
            this.testDecorators = new TestDecoratorCollection();
            this.listeners = new EventListenerCollection();

            this.extensions = new IExtensionPoint[]
                { suiteBuilders, testBuilders, testDecorators };
            this.supportedTypes = ExtensionType.Core;
        }
예제 #3
0
 public TestDecoratorCollection( TestDecoratorCollection other )
 {
     decorators.AddRange( other.decorators );
 }
 public TestDecoratorCollection(TestDecoratorCollection other)
 {
     decorators.AddRange(other.decorators);
 }