ActContext Class |
Namespace: SmartTests
The ActContext type exposes the following members.
Name | Description | |
---|---|---|
ActContext | Initializes a new instance of the ActContext class |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValueT |
Gets the value associated with the specified name.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValue(String, Object) |
Gets the value associated with the specified name.
| |
TryGetValueT(String, T) |
Gets the value associated with the specified name.
|
Name | Description | |
---|---|---|
SetHandle |
Sets the implicit wait handle of the ActContext.
(Defined by WaitAssertions.) |
Do not use it directly. It is only useful for Smart Assertions development.
This context enables you to store information that can be accessible in your Act if needed.
The best is to encapsulate this information using some extensions methods on this class; thus, you have meaningful names and right types.
see cref="WaitAssertions.SetHandle"/> for an example.