Class IActiveTestExtensions
Extension methods for IActiveTest.
public static class IActiveTestExtensions- Inheritance
- 
      
      IActiveTestExtensions
- Inherited Members
Methods
GetElapsedTime(IActiveTest, ITimeService)
Gets the elapsed test time.
public static TimeSpan GetElapsedTime(this IActiveTest activeTest, ITimeService timeService)Parameters
- activeTestIActiveTest
- The active test. 
- timeServiceITimeService
- The time service. 
Returns
- TimeSpan
- The elapsed time. 
Exceptions
- ArgumentNullException
- activeTestis null.
SetDataItem(IActiveTest, CustomTestDataItem)
Sets a test data item.
public static void SetDataItem(this IActiveTest activeTest, CustomTestDataItem testDataItem)Parameters
- activeTestIActiveTest
- The active test. 
- testDataItemCustomTestDataItem
- The test data item. 
Remarks
If a test data item already exists with the name specified by testDataItem.Name,
then that test data item will be replaced by testDataItem (retaining its position in the DataItems list).
Otherwise, testDataItem will be added to the end of the DataItems list.
Exceptions
- ArgumentNullException
- activeTestis null.
- ArgumentNullException
- testDataItemis null.
SetDataItem(IActiveTest, string, object)
Sets a test data item.
public static void SetDataItem(this IActiveTest activeTest, string name, object value)Parameters
- activeTestIActiveTest
- The active test. 
- namestring
- The test item name. 
- valueobject
- The test item value. 
Remarks
If a test data item already exists with the name specified by name,
then that test data item will be replaced (retaining its position in the DataItems list).
Otherwise, a new test data item will be added to the end of the DataItems list.
Exceptions
- ArgumentNullException
- activeTestis null.
- ArgumentNullException
- nameis null.
SetDataItem(IActiveTest, string, object, CustomTestDataStatus)
Sets a test data item.
public static void SetDataItem(this IActiveTest activeTest, string name, object value, CustomTestDataStatus status)Parameters
- activeTestIActiveTest
- The active test. 
- namestring
- The test item name. 
- valueobject
- The test item value. 
- statusCustomTestDataStatus
- The test item status. 
Remarks
If a test data item already exists with the name specified by name,
then that test data item will be replaced (retaining its position in the DataItems list).
Otherwise, a new test data item will be added to the end of the DataItems list.
Exceptions
- ArgumentNullException
- activeTestis null.
- ArgumentNullException
- nameis null.
SetDataItem(IActiveTest, string, object, CustomTestDataStatus, string)
Sets a test data item.
public static void SetDataItem(this IActiveTest activeTest, string name, object value, CustomTestDataStatus status, string additionalDetails)Parameters
- activeTestIActiveTest
- The active test. 
- namestring
- The test item name. 
- valueobject
- The test item value. 
- statusCustomTestDataStatus
- The test item status. 
- additionalDetailsstring
- Additional details about the test item. 
Remarks
If a test data item already exists with the name specified by name,
then that test data item will be replaced (retaining its position in the DataItems list).
Otherwise, a new test data item will be added to the end of the DataItems list.
Exceptions
- ArgumentNullException
- activeTestis null.
- ArgumentNullException
- nameis null.