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(); }
public PerfTestSuite() { this.timeStamp = DateTime.Now; this.tests = new PerfTestCollection(); }
/// <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); }
/// <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); } }
public Enumerator(PerfTestCollection collection) { this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator(); }