Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock/Dynamic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32197/DotNetMock/Dynamic
Modified Files:
MethodCall.cs
Log Message:
Put "get_" and "set_" stripping logic for properties in MethodCall.MethodName. So that we can comply with the OOAO edict.
Index: MethodCall.cs
===================================================================
RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/Dynamic/MethodCall.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** MethodCall.cs 18 Feb 2005 06:37:35 -0000 1.1
--- MethodCall.cs 19 Feb 2005 21:25:37 -0000 1.2
***************
*** 42,46 ****
_arguments = arguments;
}
!
/// <summary>
/// Check if given and this object represent the same method call.
--- 42,64 ----
_arguments = arguments;
}
! /// <summary>
! /// Name of method or property.
! /// </summary>
! /// <remarks>
! /// In the case of a property, we strip the "get_" or "set_"
! /// prefix.
! /// </remarks>
! public string MethodName
! {
! get
! {
! string name = _method.Name;
! if ( name.StartsWith("get_") || name.StartsWith("set_") )
! {
! name = name.Substring(4);
! }
! return name;
! }
! }
/// <summary>
/// Check if given and this object represent the same method call.
|