Beispiel #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);
		}
Beispiel #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;
        }
Beispiel #3
0
 /// <summary>
 /// Construct from another SuiteBuilderCollection, copying its contents.
 /// </summary>
 /// <param name="other">The SuiteBuilderCollection to copy</param>
 public SuiteBuilderCollection(SuiteBuilderCollection other)
 {
     builders.AddRange(other.builders);
 }
 /// <summary>
 /// Construct from another SuiteBuilderCollection, copying its contents.
 /// </summary>
 /// <param name="other">The SuiteBuilderCollection to copy</param>
 public SuiteBuilderCollection( SuiteBuilderCollection other )
 {
     builders.AddRange( other.builders );
 }