Class FakeRow
One fake: which calls of a target it matches, and what it does with them.
public sealed record FakeRow : IEquatable<FakeRow>
- Inheritance
-
FakeRow
- Implements
- Inherited Members
Constructors
FakeRow(string, IReadOnlyList<FakeArgumentMatcher>, FakeInvocation, FakeAction)
One fake: which calls of a target it matches, and what it does with them.
public FakeRow(string Target, IReadOnlyList<FakeArgumentMatcher> Arguments, FakeInvocation When, FakeAction Action)
Parameters
TargetstringThe member, qualified by its library and module:
VBA.Interaction.MsgBox. A call of it is recorded (FakeInvocationRecord) whatever the row does with it.ArgumentsIReadOnlyList<FakeArgumentMatcher>What the arguments must be, by parameter index. A parameter no matcher names matches any argument, and so does a row with no matchers.
WhenFakeInvocationWhich calls of
Targetthe row matches: every one, or the nth.ActionFakeActionWhat a call the row matches does.
Properties
Action
What a call the row matches does.
public FakeAction Action { get; init; }
Property Value
Arguments
What the arguments must be, by parameter index. A parameter no matcher names matches any argument, and so does a row with no matchers.
public IReadOnlyList<FakeArgumentMatcher> Arguments { get; init; }
Property Value
Target
The member, qualified by its library and module: VBA.Interaction.MsgBox. A call of it is recorded (FakeInvocationRecord) whatever the
row does with it.
public string Target { get; init; }
Property Value
When
Which calls of Target the row matches: every one, or the nth.
public FakeInvocation When { get; init; }