summaryrefslogtreecommitdiff
path: root/src/specs/Mock.cs
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-05-30 22:26:04 -0600
committermo k <mo@mokhan.ca>2012-05-30 22:26:04 -0600
commit18db302a64ad5ace63861a427ea66e0d29af14f3 (patch)
tree39959e18f75fe029a20277b7549cff982136542b /src/specs/Mock.cs
parentc156ffcd25324e4fd49345b7d76df012f8dc1dd9 (diff)
register subscribers of different events.main
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