|
From: Levi K. <lkh...@us...> - 2004-10-13 18:04:08
|
Update of /cvsroot/nmock/nmock/src/NMock/Proxy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11257/src/NMock/Proxy Modified Files: MockRealProxy.cs Log Message: fixed bug with inherited/explicitly implemented interface methods Index: MockRealProxy.cs =================================================================== RCS file: /cvsroot/nmock/nmock/src/NMock/Proxy/MockRealProxy.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MockRealProxy.cs 13 Oct 2004 15:43:15 -0000 1.3 --- MockRealProxy.cs 13 Oct 2004 18:03:56 -0000 1.4 *************** *** 63,74 **** private Type GetReturnType(IMethodCallMessage call) { ! MethodInfo method = type.GetMethod( ! call.MethodName, (Type[])call.MethodSignature); ! ! if (method == null) ! { ! method = typeof(object).GetMethod( ! call.MethodName, (Type[])call.MethodSignature); ! } return method.ReturnType; } --- 63,67 ---- private Type GetReturnType(IMethodCallMessage call) { ! MethodInfo method = (MethodInfo)call.MethodBase; return method.ReturnType; } |