Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock/Dynamic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21740/DotNetMock/Dynamic
Modified Files:
MethodCall.cs
Log Message:
BUG 1174229 : we should just output "N/A" if we can't stringify method call which is stringified whenever a method call expectation is not met.
Index: MethodCall.cs
===================================================================
RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/Dynamic/MethodCall.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** MethodCall.cs 19 Feb 2005 21:25:37 -0000 1.2
--- MethodCall.cs 8 Apr 2005 01:21:51 -0000 1.3
***************
*** 125,129 ****
else
{
! argumentValue = argument.ToString();
}
argumentTexts[i] = String.Format(
--- 125,136 ----
else
{
! try
! {
! argumentValue = argument.ToString();
! }
! catch
! {
! argumentValue = "N/A";
! }
}
argumentTexts[i] = String.Format(
|