Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock/Dynamic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7319/DotNetMock/Dynamic
Modified Files:
Tag: RFE_1001778
DynamicMock.cs DynamicOrderedMock.cs
Log Message:
- Changed new Test classes to correct namespace
- Added non-ambiguous GetMethod() call for "Call" method in ClassGenerator.
- Minor coding std refactorings.
Index: DynamicOrderedMock.cs
===================================================================
RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/Dynamic/DynamicOrderedMock.cs,v
retrieving revision 1.3.2.2
retrieving revision 1.3.2.3
diff -C2 -d -r1.3.2.2 -r1.3.2.3
*** DynamicOrderedMock.cs 27 Dec 2004 00:45:28 -0000 1.3.2.2
--- DynamicOrderedMock.cs 1 Jan 2005 21:57:15 -0000 1.3.2.3
***************
*** 29,33 ****
public override object Call(MethodInfo mi, params object[] args)
{
! string methodName = GetMethodName(mi);
if (values.Contains(methodName))
{
--- 29,33 ----
public override object Call(MethodInfo mi, params object[] args)
{
! string methodName = getMethodName(mi);
if (values.Contains(methodName))
{
Index: DynamicMock.cs
===================================================================
RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/Dynamic/DynamicMock.cs,v
retrieving revision 1.11.2.2
retrieving revision 1.11.2.3
diff -C2 -d -r1.11.2.2 -r1.11.2.3
*** DynamicMock.cs 27 Dec 2004 00:45:28 -0000 1.11.2.2
--- DynamicMock.cs 1 Jan 2005 21:57:15 -0000 1.11.2.3
***************
*** 132,139 ****
values[methodName] = returnVal;
}
-
public virtual object Call(MethodInfo mi, params object[] args)
{
! string methodName = GetMethodName(mi);
if (values.Contains(methodName))
{
--- 132,138 ----
values[methodName] = returnVal;
}
public virtual object Call(MethodInfo mi, params object[] args)
{
! string methodName = getMethodName(mi);
if (values.Contains(methodName))
{
***************
*** 161,164 ****
--- 160,165 ----
}
+
+
protected virtual void addExpectation(ExpectationMethod e)
{
***************
*** 172,176 ****
}
! protected static string GetMethodName(MethodInfo mi)
{
string methodName = mi.Name;
--- 173,177 ----
}
! protected static string getMethodName( MethodInfo mi )
{
string methodName = mi.Name;
|