Table of Contents

Class ActiveTestExtensions

Namespace
Acuit.Pinpoint.Workflows.Testing
Assembly
Acuit.Pinpoint.Workflows.Testing.dll

Extension methods for IActiveTest.

public static class ActiveTestExtensions
Inheritance
ActiveTestExtensions
Inherited Members

Methods

GetElapsedTime(IActiveTest, TimeProvider)

Gets the elapsed test time.

public static TimeSpan GetElapsedTime(this IActiveTest activeTest, TimeProvider timeProvider)

Parameters

activeTest IActiveTest
timeProvider TimeProvider

The time provider.

Returns

TimeSpan

The elapsed time.

SetDataItem(IActiveTest, CustomTestDataItem)

Sets a test data item.

public static void SetDataItem(this IActiveTest activeTest, CustomTestDataItem testDataItem)

Parameters

activeTest IActiveTest
testDataItem CustomTestDataItem

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

testDataItem is null.

SetDataItem(IActiveTest, string, object?)

Sets a test data item.

public static void SetDataItem(this IActiveTest activeTest, string name, object? value)

Parameters

activeTest IActiveTest
name string

The test item name.

value object

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

name is 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

activeTest IActiveTest
name string

The test item name.

value object

The test item value.

status CustomTestDataStatus

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

name is 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

activeTest IActiveTest
name string

The test item name.

value object

The test item value.

status CustomTestDataStatus

The test item status.

additionalDetails string

Optional 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

name is null.