|
From: <joe...@us...> - 2003-01-21 16:44:15
|
Update of /cvsroot/nmock/nmock/src/NMock
In directory sc8-pr-cvs1:/tmp/cvs-serv2740/src/NMock
Modified Files:
DynamicMock.cs
Log Message:
Dull formatting change
Index: DynamicMock.cs
===================================================================
RCS file: /cvsroot/nmock/nmock/src/NMock/DynamicMock.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** DynamicMock.cs 3 Jan 2003 15:59:57 -0000 1.4
--- DynamicMock.cs 21 Jan 2003 16:44:08 -0000 1.5
***************
*** 14,20 ****
public DynamicMock(Type type) : this(type, null)
{
! ignore = new ArrayList();
Name = "Mock" + StripLeadingIifInterface(type);
! }
public DynamicMock(Type type, string name) : base(name)
--- 14,20 ----
public DynamicMock(Type type) : this(type, null)
{
! ignore = new ArrayList();
Name = "Mock" + StripLeadingIifInterface(type);
! }
public DynamicMock(Type type, string name) : base(name)
***************
*** 43,52 ****
}
! private string StripLeadingIifInterface(Type type) {
! string name = type.Name;
! return name.StartsWith("I") ? name.Substring(1) : name;
! }
! private void generate()
{
ClassGenerator cg = new ClassGenerator();
--- 43,53 ----
}
! private string StripLeadingIifInterface(Type type)
! {
! string name = type.Name;
! return name.StartsWith("I") ? name.Substring(1) : name;
! }
! private void generate()
{
ClassGenerator cg = new ClassGenerator();
|