Skip to content

Commit

Permalink
Fix FakeTimeProvider docs (#5227)
Browse files Browse the repository at this point in the history
  • Loading branch information
gewarren authored Jun 17, 2024
1 parent c13c8ef commit af04b7a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public FakeTimeProvider(DateTimeOffset startDateTime)
/// <remarks>
/// This defaults to <see cref="TimeSpan.Zero"/>.
/// </remarks>
/// <exception cref="ArgumentOutOfRangeException">if the time value is set to less than <see cref="TimeSpan.Zero"/>.</exception>
/// <exception cref="ArgumentOutOfRangeException">The time value is less than <see cref="TimeSpan.Zero"/>.</exception>
public TimeSpan AutoAdvanceAmount
{
get => _autoAdvanceAmount;
Expand Down Expand Up @@ -91,11 +91,11 @@ public override DateTimeOffset GetUtcNow()
/// Advances the date and time in the UTC time zone.
/// </summary>
/// <param name="value">The date and time in the UTC time zone.</param>
/// <exception cref="ArgumentOutOfRangeException">if the supplied time value is before the current time.</exception>
/// <exception cref="ArgumentOutOfRangeException">The supplied time value is before the current time.</exception>
/// <remarks>
/// This method simply advances time. If the time is set forward beyond the
/// trigger point of any outstanding timers, those timers will immediately trigger.
/// This is unlike the <see cref="AdjustTime" /> method below, which has no impact
/// This is unlike the <see cref="AdjustTime" /> method, which has no impact
/// on timers.
/// </remarks>
public void SetUtcNow(DateTimeOffset value)
Expand Down Expand Up @@ -123,7 +123,7 @@ public void SetUtcNow(DateTimeOffset value)
/// marches forward automatically in hardware, for the fake time provider the application is responsible for
/// doing this explicitly by calling this method.
/// </remarks>
/// <exception cref="ArgumentOutOfRangeException">if the time value is less than <see cref="TimeSpan.Zero"/>.</exception>
/// <exception cref="ArgumentOutOfRangeException">The time value is less than <see cref="TimeSpan.Zero"/>.</exception>
public void Advance(TimeSpan delta)
{
_ = Throw.IfLessThan(delta.Ticks, 0);
Expand Down

0 comments on commit af04b7a

Please sign in to comment.