summaryrefslogtreecommitdiff
path: root/src/specs/Mock.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/specs/Mock.cs')
-rwxr-xr-xsrc/specs/Mock.cs7
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