コード例 #1
0
 /// <summary>
 /// Adds the elements of a <see cref="NUnit2TestCollection"/> to the end of the collection.
 /// </summary>
 /// <param name="items">The <see cref="NUnit2TestCollection"/> to be added to the end of the collection.</param>
 public void AddRange(NUnit2TestCollection items)
 {
     for (int i = 0; (i < items.Count); i = (i + 1))
     {
         Add(items[i]);
     }
 }
コード例 #2
0
 private NUnit2TestCollection SampleTests(int count)
 {
     NUnit2TestCollection result = new NUnit2TestCollection();
     for (int i = 0; i < count; i++)
         result.Add(new NUnit2Test());
     return result;
 }
コード例 #3
0
ファイル: NUNit2TestCollection.cs プロジェクト: RoastBoy/nant
 /// <summary>
 /// Adds the elements of a <see cref="NUnit2TestCollection"/> to the end of the collection.
 /// </summary>
 /// <param name="items">The <see cref="NUnit2TestCollection"/> to be added to the end of the collection.</param> 
 public void AddRange(NUnit2TestCollection items) {
     for (int i = 0; (i < items.Count); i = (i + 1)) {
         Add(items[i]);
     }
 }
コード例 #4
0
ファイル: NUNit2TestCollection.cs プロジェクト: RoastBoy/nant
 /// <summary>
 /// Initializes a new instance of the <see cref="NUnit2TestCollection"/> class
 /// with the specified <see cref="NUnit2TestCollection"/> instance.
 /// </summary>
 public NUnit2TestCollection(NUnit2TestCollection value) {
     AddRange(value);
 }
コード例 #5
0
ファイル: NUNit2TestCollection.cs プロジェクト: RoastBoy/nant
 /// <summary>
 /// Initializes a new instance of the <see cref="NUnit2TestEnumerator"/> class
 /// with the specified <see cref="NUnit2TestCollection"/>.
 /// </summary>
 /// <param name="arguments">The collection that should be enumerated.</param>
 internal NUnit2TestEnumerator(NUnit2TestCollection arguments) {
     IEnumerable temp = (IEnumerable) (arguments);
     _baseEnumerator = temp.GetEnumerator();
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NUnit2TestCollection"/> class
 /// with the specified <see cref="NUnit2TestCollection"/> instance.
 /// </summary>
 public NUnit2TestCollection(NUnit2TestCollection value)
 {
     AddRange(value);
 }
コード例 #7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NUnit2TestEnumerator"/> class
        /// with the specified <see cref="NUnit2TestCollection"/>.
        /// </summary>
        /// <param name="arguments">The collection that should be enumerated.</param>
        internal NUnit2TestEnumerator(NUnit2TestCollection arguments)
        {
            IEnumerable temp = (IEnumerable)(arguments);

            _baseEnumerator = temp.GetEnumerator();
        }
コード例 #8
0
 public NUnit2TestCollection Filter(NUnit2TestCollection tests)
 {
     return tests;
 }
コード例 #9
0
ファイル: TLBNunit2Task.cs プロジェクト: CodeMangler/tlb.net
 public NUnit2TestCollection Balance(NUnit2TestCollection tests)
 {
     return _balancer.Filter(tests);
 }