Class FakeInvocationRecord
One call of a target a row of the fakes names: what a test verifies a call against.
public sealed record FakeInvocationRecord : IEquatable<FakeInvocationRecord>
- Inheritance
-
FakeInvocationRecord
- Implements
- Inherited Members
Constructors
FakeInvocationRecord(string, int, IReadOnlyList<RunValue>, string, string, int, int, bool)
One call of a target a row of the fakes names: what a test verifies a call against.
public FakeInvocationRecord(string Target, int Ordinal, IReadOnlyList<RunValue> Arguments, string Module, string Procedure, int Line, int Character, bool Answered)
Parameters
TargetstringThe member called, as Target names it.
OrdinalintThe one-based ordinal of the call among the run's calls of
Target.ArgumentsIReadOnlyList<RunValue>The arguments, in the member's declared parameter order; a missing optional argument is
Emptywith a null value.ModulestringThe programmatic name of the module the call is written in.
ProcedurestringThe name of the procedure the call is written in.
LineintThe zero-based line of the call in the source of
Module, or-1when it has no location.CharacterintThe zero-based character of the call within
Line, or-1.AnsweredboolWhether a row answered the call (Return or Raise); false when it ran.
Properties
Answered
public bool Answered { get; init; }
Property Value
Arguments
The arguments, in the member's declared parameter order; a missing optional argument is Empty with a null value.
public IReadOnlyList<RunValue> Arguments { get; init; }
Property Value
Character
The zero-based character of the call within Line, or -1.
public int Character { get; init; }
Property Value
Line
The zero-based line of the call in the source of Module, or -1 when it has no location.
public int Line { get; init; }
Property Value
Module
The programmatic name of the module the call is written in.
public string Module { get; init; }
Property Value
Ordinal
The one-based ordinal of the call among the run's calls of Target.
public int Ordinal { get; init; }
Property Value
Procedure
The name of the procedure the call is written in.
public string Procedure { get; init; }
Property Value
Target
The member called, as Target names it.
public string Target { get; init; }