Click or drag to resize

ActContext Class

Context of the Act part of your test.
Inheritance Hierarchy
SystemObject
  SmartTestsActContext

Namespace:  SmartTests
Assembly:  SmartTests (in SmartTests.dll) Version: 1.6.0
Syntax
public class ActContext

The ActContext type exposes the following members.

Constructors
  NameDescription
Public methodActContext
Initializes a new instance of the ActContext class
Top
Properties
  NameDescription
Public propertyItem
Gets or sets the value associated with the specified name.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValueT
Gets the value associated with the specified name.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue(String, Object)
Gets the value associated with the specified name.
Public methodTryGetValueT(String, T)
Gets the value associated with the specified name.
Top
Extension Methods
  NameDescription
Public Extension MethodCode exampleSetHandle
Sets the implicit wait handle of the ActContext.
(Defined by WaitAssertions.)
Top
Remarks

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.

See Also