Class FakeAction
What a call a FakeRow matches does.
public sealed record FakeAction : IEquatable<FakeAction>
- Inheritance
-
FakeAction
- Implements
- Inherited Members
Constructors
FakeAction(FakeActionKind, RunValue?, int, string?, IReadOnlyList<FakeAssignment>?)
What a call a FakeRow matches does.
public FakeAction(FakeActionKind Kind, RunValue? Value = null, int ErrorNumber = 0, string? ErrorDescription = null, IReadOnlyList<FakeAssignment>? Assignments = null)
Parameters
KindFakeActionKindWhether the call returns, raises, or runs.
ValueRunValueFor Return, the value returned, Let-coerced to the member's declared type (MS-VBAL §5.5.1.2): null for a
Sub, or for the member type's default value. null otherwise.ErrorNumberintFor Raise, the number of the error raised;
0otherwise.ErrorDescriptionstringFor Raise, the error's description: null for the description of
ErrorNumber.AssignmentsIReadOnlyList<FakeAssignment>For Return and Raise, the
ByRefarguments the call writes before it returns or raises.
Properties
Assignments
The ByRef arguments the call writes, in order. Empty when it writes none.
public IReadOnlyList<FakeAssignment> Assignments { get; init; }
Property Value
ErrorDescription
public string? ErrorDescription { get; init; }
Property Value
ErrorNumber
For Raise, the number of the error raised; 0 otherwise.
public int ErrorNumber { get; init; }
Property Value
Kind
Whether the call returns, raises, or runs.
public FakeActionKind Kind { get; init; }
Property Value
Value
For Return, the value returned, Let-coerced to the member's declared type (MS-VBAL §5.5.1.2):
null for a Sub, or for the member type's default value. null otherwise.
public RunValue? Value { get; init; }