|
From: <sm...@us...> - 2003-08-20 07:21:47
|
Update of /cvsroot/nmock/nmock/test/NMock/Dynamic
In directory sc8-pr-cvs1:/tmp/cvs-serv962/test/NMock/Dynamic
Modified Files:
ClassGeneratorTest.cs
Log Message:
Do not override methods that are only Assembly-accessible
Index: ClassGeneratorTest.cs
===================================================================
RCS file: /cvsroot/nmock/nmock/test/NMock/Dynamic/ClassGeneratorTest.cs,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** ClassGeneratorTest.cs 13 Aug 2003 21:19:58 -0000 1.14
--- ClassGeneratorTest.cs 20 Aug 2003 06:19:29 -0000 1.15
***************
*** 361,369 ****
}
! [Test] [ExpectedException(typeof(TypeLoadException))] public void CannotMockClassWithInternalMethodBecauseOfAssemblyVisibility()
{
! new ClassGenerator(typeof(ClassWithInternalMethod), mock).Generate();
}
-
}
}
--- 361,370 ----
}
! [Test] public void IgnoresInternalMethodsBecauseOfAssemblyVisibility()
{
! ArrayList methodsToIgnore = new ArrayList();
! new ClassGenerator(typeof(ClassWithInternalMethod), mock, methodsToIgnore).Generate();
! Assertion.Assert("Should include InternalMethod", methodsToIgnore.Contains("InternalMethod"));
}
}
}
|