Example #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]);
     }
 }
Example #2
0
 private NUnit2TestCollection SampleTests(int count)
 {
     NUnit2TestCollection result = new NUnit2TestCollection();
     for (int i = 0; i < count; i++)
         result.Add(new NUnit2Test());
     return result;
 }
Example #3
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]);
     }
 }
Example #4
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);
 }
Example #5
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();
 }
Example #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);
 }
Example #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();
        }
Example #8
0
 public NUnit2TestCollection Filter(NUnit2TestCollection tests)
 {
     return tests;
 }
Example #9
0
 public NUnit2TestCollection Balance(NUnit2TestCollection tests)
 {
     return _balancer.Filter(tests);
 }