|
From: <sm...@us...> - 2003-08-13 19:47:14
|
Update of /cvsroot/nmock/nmock/src/NMock
In directory sc8-pr-cvs1:/tmp/cvs-serv30014/src/NMock
Modified Files:
IMock.cs
Added Files:
IInvocationHandler.cs
Log Message:
Added IInvocationHandler and generalised DynamicProxy generation
(with Jon Tirsen)
--- NEW FILE: IInvocationHandler.cs ---
namespace NMock
{
public interface IInvocationHandler
{
/// <summary>
/// Make a call to a mocked up method name to check it meets its expectations.
/// </summary>
object Call(string methodName, params object[] args);
}
}
Index: IMock.cs
===================================================================
RCS file: /cvsroot/nmock/nmock/src/NMock/IMock.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** IMock.cs 24 Jul 2003 23:08:42 -0000 1.4
--- IMock.cs 13 Aug 2003 19:42:38 -0000 1.5
***************
*** 8,12 ****
/// </summary>
/// <see cref="Mock"/>
! public interface IMock : IVerifiable
{
/// <summary>
--- 8,12 ----
/// </summary>
/// <see cref="Mock"/>
! public interface IMock : IInvocationHandler, IVerifiable
{
/// <summary>
***************
*** 54,63 ****
/// </summary>
void SetupResult(string methodName, object returnVal, params Type[] argTypes);
-
-
- /// <summary>
- /// Make a call to a mocked up method name to check it meets its expectations.
- /// </summary>
- object Call(string methodName, params object[] args);
}
--- 54,57 ----
|