Skip to content

Commit

Permalink
Reorder MockBehavior enum values
Browse files Browse the repository at this point in the history
such that the default enum value will equal `default(MockBehavior)`.
  • Loading branch information
stakx committed Dec 27, 2020
1 parent 7a6a634 commit fdc644f
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/Moq/MockBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,22 @@ namespace Moq
public enum MockBehavior
{
/// <summary>
/// Causes the mock to always throw
/// an exception for invocations that don't have a
/// corresponding setup.
/// Default mock behavior, which equals <see cref="Loose"/>.
/// </summary>
Strict,
Default = default,

/// <summary>
/// Will never throw exceptions, returning default
/// values when necessary (null for reference types,
/// Will never throw exceptions, returning default
/// values when necessary (null for reference types,
/// zero for value types or empty enumerables and arrays).
/// </summary>
Loose,
Loose = default,

/// <summary>
/// Default mock behavior, which equals <see cref="Loose"/>.
/// Causes the mock to always throw
/// an exception for invocations that don't have a
/// corresponding setup.
/// </summary>
Default = Loose,
Strict,
}
}

0 comments on commit fdc644f

Please sign in to comment.