diff options
Diffstat (limited to 'src/specs/Mock.cs')
| -rwxr-xr-x | src/specs/Mock.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/specs/Mock.cs b/src/specs/Mock.cs index 6712e45..5ecdae2 100755 --- a/src/specs/Mock.cs +++ b/src/specs/Mock.cs @@ -5,7 +5,7 @@ namespace specs {
public static class Mock
{
- public static T An<T>() where T : class
+ public static T an<T>() where T : class
{
return MockRepository.GenerateMock<T>();
}
@@ -14,5 +14,10 @@ namespace specs {
mock.AssertWasCalled(command);
}
+
+ public static void should_not_have_received<T>(this T mock, Action<T> command)
+ {
+ mock.AssertWasNotCalled(command);
+ }
}
}
\ No newline at end of file |
