/// <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]); } }
private NUnit2TestCollection SampleTests(int count) { NUnit2TestCollection result = new NUnit2TestCollection(); for (int i = 0; i < count; i++) result.Add(new NUnit2Test()); return result; }
/// <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); }
/// <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(); }
/// <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(); }
public NUnit2TestCollection Filter(NUnit2TestCollection tests) { return tests; }
public NUnit2TestCollection Balance(NUnit2TestCollection tests) { return _balancer.Filter(tests); }