summaryrefslogtreecommitdiff
path: root/src/test/Mock.cs
blob: 1aa30c8e36f40b940a23cc7a3a8a59bf6b886ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace test
{
  using Rhino.Mocks;
  
  public static class Mock
  {
    public static T An<T>() where T : class
    {
      return MockRepository.GenerateMock<T>();
    }
  }
  public static class Assertions
  {
    public static void received<T>(this T mock,System.Action<T> action)
    {
      mock.AssertWasCalled(action);
    }
  }
}