NUnit2TestCollection.

IndexOf(NUnit2Test) Method

Summary

Retrieves the index of a specified NAnt.NUnit2.Types.NUnit2Test object in the collection.
Assembly
NAnt.NUnit2.dll
Namespace
NAnt.NUnit2.Types
Containing Type
NUnit2TestCollection

Syntax

public int IndexOf(NUnit2Test item)

Parameters

Name Type Description
item NUnit2Test The NAnt.NUnit2.Types.NUnit2Test object for which the index is returned.

Return Value

Type Description
int The index of the specified NAnt.NUnit2.Types.NUnit2Test. If the NAnt.NUnit2.Types.NUnit2Test is not currently a member of the collection, it returns -1.