Skip to content

Commit

Permalink
fixes devlooped#27 :
Browse files Browse the repository at this point in the history
 - Rename ResetAllCalls method to a more suited "ResetCalls"
  • Loading branch information
salfab committed Apr 3, 2013
1 parent 0b9a9a5 commit 06d1a0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Source/MockResetExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ namespace Moq
public static class MockResetExtensions
{
/// <summary>
/// Resets the current count of calls for the specified method.
/// Resets the calls previously made on the specified mock.
/// </summary>
/// <param name="mock">The mock whose call need to be reset.</param>
public static void ResetAllCalls(this Mock mock)
/// <param name="mock">The mock whose calls need to be reset.</param>
public static void ResetCalls(this Mock mock)
{
var calls = (IList<ICallContext>)mock.Interceptor.ActualCalls;
calls.Clear();
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/ExtensionsFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void OnceDoesNotThrowOnSecondCallIfCountWasResetBefore()
mock.Setup(foo => foo.Execute("ping")).Returns("ack");

mock.Object.Execute("ping");
mock.ResetAllCalls();
mock.ResetCalls();
mock.Object.Execute("ping");
mock.Verify(o => o.Execute("ping"), Times.Once());
}
Expand Down

0 comments on commit 06d1a0d

Please sign in to comment.