We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aed3b3 commit edc86ceCopy full SHA for edc86ce
src/Moq/ActionObserver.cs
@@ -242,7 +242,7 @@ sealed class Recorder : IInterceptor
242
readonly MatcherObserver matcherObserver;
243
int creationTimestamp;
244
Invocation? invocation;
245
- int? invocationTimestamp;
+ int invocationTimestamp;
246
object? returnValue;
247
248
public Recorder(MatcherObserver matcherObserver)
@@ -260,7 +260,7 @@ public IEnumerable<Match> Matches
260
get
261
{
262
Debug.Assert(this.invocationTimestamp != default);
263
- return this.matcherObserver.GetMatchesBetween(this.creationTimestamp, this.invocationTimestamp!.Value);
+ return this.matcherObserver.GetMatchesBetween(this.creationTimestamp, this.invocationTimestamp);
264
}
265
266
0 commit comments