NUnit2TestCollection Class

Summary

Contains a strongly typed collection of NAnt.NUnit2.Types.NUnit2Test objects.
Assembly
NAnt.NUnit2.dll
Namespace
NAnt.NUnit2.Types
Base Types
  • CollectionBase
graph BT Type-->Base0["CollectionBase"] Type["NUnit2TestCollection"] class Type type-node

Syntax

[Serializable]
public class NUnit2TestCollection : CollectionBase

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
NUnit2TestCollection() Initializes a new instance of the NAnt.NUnit2.Types.NUnit2TestCollection class.
NUnit2TestCollection(NUnit2Test[]) Initializes a new instance of the NAnt.NUnit2.Types.NUnit2TestCollection class with the specified array of NAnt.NUnit2.Types.NUnit2Test instances.
NUnit2TestCollection(NUnit2TestCollection) Initializes a new instance of the NAnt.NUnit2.Types.NUnit2TestCollection class with the specified NAnt.NUnit2.Types.NUnit2TestCollection instance.

Properties

Name Value Summary
this[int] NUnit2Test
Gets or sets the element at the specified index.

Methods

Name Value Summary
Add(NUnit2Test) int
Adds a NAnt.NUnit2.Types.NUnit2Test to the end of the collection.
AddRange(NUnit2Test[]) void
Adds the elements of a NAnt.NUnit2.Types.NUnit2Test array to the end of the collection.
AddRange(NUnit2TestCollection) void
Adds the elements of a NAnt.NUnit2.Types.NUnit2TestCollection to the end of the collection.
Contains(NUnit2Test) bool
Determines whether a NAnt.NUnit2.Types.NUnit2Test is in the collection.
CopyTo(NUnit2Test[], int) void
Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.
GetEnumerator() NUnit2TestEnumerator
Returns an enumerator that can iterate through the collection.
IndexOf(NUnit2Test) int
Retrieves the index of a specified NAnt.NUnit2.Types.NUnit2Test object in the collection.
Insert(int, NUnit2Test) void
Inserts a NAnt.NUnit2.Types.NUnit2Test into the collection at the specified index.
Remove(NUnit2Test) void
Removes a member from the collection.