Skip to content

Commit

Permalink
Disable S3236 in fake time provider. (#5315)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdenny committed Jul 29, 2024
1 parent d1e3541 commit e18a59d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ public override long GetTimestamp()
// The same issue could occur converting back, in GetElapsedTime(). Unfortunately
// that isn't virtual so we can't do the same trick. However, if tests advance
// the clock in multiples of 1ms or so this loss of precision will not be visible.
#pragma warning disable S3236 // Caller information arguments should not be provided explicitly
Debug.Assert(TimestampFrequency == TimeSpan.TicksPerSecond, "Assuming frequency equals ticks per second");
#pragma warning restore S3236 // Caller information arguments should not be provided explicitly
return _now.Ticks;
}

Expand Down

0 comments on commit e18a59d

Please sign in to comment.