|
From: Levi K. <lkh...@us...> - 2004-08-19 06:12:48
|
Update of /cvsroot/nmock/nmock/src/NMock In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30546/src/NMock Modified Files: Mock.cs MockCall.cs Log Message: Unexpected call exception messages made consistent Index: MockCall.cs =================================================================== RCS file: /cvsroot/nmock/nmock/src/NMock/MockCall.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MockCall.cs 29 Nov 2003 17:19:13 -0000 1.6 --- MockCall.cs 19 Aug 2004 06:12:37 -0000 1.7 *************** *** 119,123 **** public override object Call(string methodName, object[] actualArgs) { ! throw new VerifyException(signature.ToString() + " called", 0, 1); } } --- 119,123 ---- public override object Call(string methodName, object[] actualArgs) { ! throw new VerifyException(signature.ToString() + " called too many times", 0, 1); } } Index: Mock.cs =================================================================== RCS file: /cvsroot/nmock/nmock/src/NMock/Mock.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** Mock.cs 29 Nov 2003 17:04:46 -0000 1.13 --- Mock.cs 19 Aug 2004 06:12:37 -0000 1.14 *************** *** 95,99 **** if (strict) { ! throw new VerifyException(methodName + "() called too many times", 0, 1); } return null; --- 95,99 ---- if (strict) { ! throw new VerifyException(signature.ToString() + " called too many times", 0, 1); } return null; |