Click or drag to resize

ActContextItem Property

Gets or sets the value associated with the specified name.

Namespace:  SmartTests
Assembly:  SmartTests (in SmartTests.dll) Version: 1.12.0
Syntax
public Object this[
	string name
] { get; set; }

Parameters

name
Type: SystemString
The name of the value to get or set.

Return Value

Type: Object
The value associated with the specified name. If the specified name is not found, a get operation throws a KeyNotFoundException, and a set operation creates a new element with the specified name.
Exceptions
ExceptionCondition
ArgumentNullExceptionname is null.
KeyNotFoundException The property is retrieved and name does not exist in the dictionary.
Remarks

Do not use it directly. It is only useful for Smart Assertions development.

The best is to encapsulate this information using some extensions methods on this class; thus, you have meaningful names and right types.

SetHandle(ActContext) for an example.

See Also