|
From: <sm...@us...> - 2003-11-29 17:19:18
|
Update of /cvsroot/nmock/nmock/src/NMock
In directory sc8-pr-cvs1:/tmp/cvs-serv22336/src/NMock
Modified Files:
MockCall.cs
Log Message:
Added better diagnostics for rejected constraint
Index: MockCall.cs
===================================================================
RCS file: /cvsroot/nmock/nmock/src/NMock/MockCall.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** MockCall.cs 16 Oct 2003 13:49:13 -0000 1.5
--- MockCall.cs 29 Nov 2003 17:19:13 -0000 1.6
***************
*** 83,87 ****
String messageFormat = "{0}() called with incorrect parameter ({1})";
String message = String.Format(messageFormat, methodName, index + 1);
! throw new VerifyException(message, expected.Message, actual);
}
}
--- 83,87 ----
String messageFormat = "{0}() called with incorrect parameter ({1})";
String message = String.Format(messageFormat, methodName, index + 1);
! throw new VerifyException(message, expected.Message, expected.ExtractActualValue(actual));
}
}
|