98 lines
2.7 KiB
HTML
98 lines
2.7 KiB
HTML
<html>
|
|
<head>
|
|
<title>COMUnit Reference Manual: TestErrors</title>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>Class TestErrors</h1>
|
|
|
|
<h2>Description:</h2>
|
|
<p>
|
|
The TestErrors class is the collection class for <a href="testerror.html">TestError</a> objects. It holds the test case
|
|
failures and errors that have been collected by the <a href="testresult.html">TestResult</a> object.</p>
|
|
<p>Note: this class has an instancing property of PublicNotCreatable. It can
|
|
only be instantiated by classes in the test framework.</p>
|
|
|
|
<h2>Interface Implementation:</h2>
|
|
<ul>
|
|
<li>None</li>
|
|
</ul>
|
|
|
|
<h2>Known Subclasses:</h2>
|
|
<ul>
|
|
<li>None</li>
|
|
</ul>
|
|
|
|
<h2>Method Summary:</h2>
|
|
<table border="1" cellpadding="2" cellspacing="2">
|
|
<tr><th>Method:</th><th>Definition:</th></tr>
|
|
<tr>
|
|
<td><a href="#Add">Add</a></td>
|
|
<td>Friend Function Add(oTestCase As ITestCase, lNumber As Long, sSource As String, sDescription As String) As TestError</td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="#AddError">AddError</a></td>
|
|
<td>Friend Sub AddError(oError As TestError)</td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="#Count">Count</a></td>
|
|
<td>Public Property Get Count() As Long</td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="#Item">Item</a></td>
|
|
<td>Public Property Get Item(iIndex As Integer) As TestError</td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="#NewEnum">NewEnum</a></td>
|
|
<td>Public Property Get NewEnum() As IUnknown</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h2>Methods:</h2>
|
|
|
|
<h3><a name="Add">Add</a></h3>
|
|
<dl>
|
|
<dt>Definition:</dt>
|
|
<dd>Friend Function Add(oTestCase As ITestCase, lNumber As Long, sSource As String, sDescription As String) As TestError</dd>
|
|
<dt>Description:</dt><dd>Add a new error or failure to the error collection.
|
|
This method can only be called by other objects in the testing framework.</dd>
|
|
</dl>
|
|
|
|
<hr />
|
|
|
|
<h3><a name="AddError">AddError</a></h3>
|
|
<dl>
|
|
<dt>Definition:</dt>
|
|
<dd>Friend Sub AddError(oError As TestError)</dd>
|
|
<dt>Add a new TestError object to the collection.
|
|
This method can only be called by other objects in the testing framework.</dd>
|
|
</dl>
|
|
|
|
<hr />
|
|
|
|
<h3><a name="Item">Item</a></h3>
|
|
<dl>
|
|
<dt>Definition:</dt>
|
|
<dd>Public Property Get Item(iIndex As Integer) As TestError</dd>
|
|
<dt>Description:</dt><dd>Return a TestError object from the collection by index - one-based</dd>
|
|
</dl>
|
|
|
|
<hr />
|
|
|
|
<h3><a name="Count">Count</a></h3>
|
|
<dl>
|
|
<dt>Definition:</dt>
|
|
<dd>Public Property Get Count() As Long</dd>
|
|
<dt>Description:</dt><dd>Return number of TestError objects in the collection.</dd>
|
|
</dl>
|
|
|
|
<hr />
|
|
|
|
<h3><a name="NewEnum">NewEnum</a></h3>
|
|
<dl>
|
|
<dt>Definition:</dt>
|
|
<dd>Public Property Get NewEnum() As IUnknown</dd>
|
|
<dt>Description:</dt><dd>This property allows you to enumerate this collection with the For...Each syntax</dd>
|
|
</dl>
|
|
</body>
|
|
</html>
|