Esempio n. 1
0
        public PerfTestSuite(Type testerType, string description, string featureDescription)
        {
            if (testerType==null)
                throw new ArgumentNullException("testerType");

            this.timeStamp = DateTime.Now;
            this.name = testerType.Name;
            this.description = description;
            this.featureDescription = featureDescription;
            this.tests = new PerfTestCollection();
            this.machine = PerfMachine.GetCurrent();
            this.os = PerfOs.GetCurrent();
        }
Esempio n. 2
0
 public PerfTestSuite()
 {
     this.timeStamp = DateTime.Now;
     this.tests = new PerfTestCollection();
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the PerfTestCollection class, containing elements
 /// copied from another instance of PerfTestCollection
 /// </summary>
 /// <param name="items">
 /// The PerfTestCollection whose elements are to be added to the new PerfTestCollection.
 /// </param>
 public PerfTestCollection(PerfTestCollection items)
 {
     this.AddRange(items);
 }
Esempio n. 4
0
 /// <summary>
 /// Adds the elements of another PerfTestCollection to the end of this PerfTestCollection.
 /// </summary>
 /// <param name="items">
 /// The PerfTestCollection whose elements are to be added to the end of this PerfTestCollection.
 /// </param>
 public virtual void AddRange(PerfTestCollection items)
 {
     foreach (PerfTest item in items)
     {
         this.List.Add(item);
     }
 }
Esempio n. 5
0
 public Enumerator(PerfTestCollection collection)
 {
     this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
 }