Class TestErrors

Description:

The TestErrors class is the collection class for TestError objects. It holds the test case failures and errors that have been collected by the TestResult object.

Note: this class has an instancing property of PublicNotCreatable. It can only be instantiated by classes in the test framework.

Interface Implementation:

Known Subclasses:

Method Summary:

Method:Definition:
Add Friend Function Add(oTestCase As ITestCase, lNumber As Long, sSource As String, sDescription As String) As TestError
AddError Friend Sub AddError(oError As TestError)
Count Public Property Get Count() As Long
Item Public Property Get Item(iIndex As Integer) As TestError
NewEnum Public Property Get NewEnum() As IUnknown

Methods:

Add

Definition:
Friend Function Add(oTestCase As ITestCase, lNumber As Long, sSource As String, sDescription As String) As TestError
Description:
Add a new error or failure to the error collection. This method can only be called by other objects in the testing framework.

AddError

Definition:
Friend Sub AddError(oError As TestError)
Add a new TestError object to the collection. This method can only be called by other objects in the testing framework.

Item

Definition:
Public Property Get Item(iIndex As Integer) As TestError
Description:
Return a TestError object from the collection by index - one-based

Count

Definition:
Public Property Get Count() As Long
Description:
Return number of TestError objects in the collection.

NewEnum

Definition:
Public Property Get NewEnum() As IUnknown
Description:
This property allows you to enumerate this collection with the For...Each syntax