Class ExpectAction
Specifies behavior for expected expression.
public class ExpectAction
- Inheritance
-
ExpectAction
- Inherited Members
Constructors
ExpectAction(string, Action<string>)
Initializes a new instance of the ExpectAction class.
public ExpectAction(string expect, Action<string> action)
Parameters
Exceptions
- ArgumentNullException
expect
oraction
is null.
ExpectAction(Regex, Action<string>)
Initializes a new instance of the ExpectAction class.
public ExpectAction(Regex expect, Action<string> action)
Parameters
Exceptions
- ArgumentNullException
expect
oraction
is null.
Properties
Action
Gets the action to perform when expected expression is found.
public Action<string> Action { get; }
Property Value
Expect
Gets the expected regular expression.
public Regex Expect { get; }