diff options
| author | mo k <mo@mokhan.ca> | 2012-05-30 22:26:04 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-05-30 22:26:04 -0600 |
| commit | 18db302a64ad5ace63861a427ea66e0d29af14f3 (patch) | |
| tree | 39959e18f75fe029a20277b7549cff982136542b /src/specs/Mock.cs | |
| parent | c156ffcd25324e4fd49345b7d76df012f8dc1dd9 (diff) | |
register subscribers of different events.main
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 |
