コード例 #1
0
ファイル: PerfTestSuite.cs プロジェクト: sidlovskyy/NPerf
        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();
        }
コード例 #2
0
ファイル: PerfTestSuite.cs プロジェクト: sidlovskyy/NPerf
 public PerfTestSuite()
 {
     this.timeStamp = DateTime.Now;
     this.tests = new PerfTestCollection();
 }
コード例 #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);
 }
コード例 #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);
     }
 }
コード例 #5
0
 public Enumerator(PerfTestCollection collection)
 {
     this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
 }