NAnt SDK Documentation - v0.92 |

# NUnit2TestCollection.GetEnumerator Method

Returns an enumerator that can iterate through the collection.

[Visual Basic]
Public Function GetEnumerator() As NUnit2TestEnumerator
[C#]
new public NUnit2TestEnumerator GetEnumerator();

#### Return Value

A NUnit2TestEnumerator for the entire collection.

#### See Also

NUnit2TestCollection Class | NAnt.NUnit2.Types Namespace