From: Choy R. <ch...@us...> - 2005-05-11 04:08:40
|
Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock.Tests/Dynamic/Generate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22636/DotNetMock.Tests/Dynamic/Generate Modified Files: ClassGeneratorTests.cs Log Message: BUG [ 1194538 ] MethodCall::MethodName property has "somewhat-invalid" logic * needed to pass through the SpecialName attribute to the created mock method on the proxy type. * added check for IsSpecialName in handling of property access method calls. Index: ClassGeneratorTests.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock.Tests/Dynamic/Generate/ClassGeneratorTests.cs,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** ClassGeneratorTests.cs 23 Apr 2005 21:53:33 -0000 1.18 --- ClassGeneratorTests.cs 11 May 2005 04:08:31 -0000 1.19 *************** *** 133,136 **** --- 133,142 ---- private MethodInfo _methodInfo = null; } + [Test] public void ReadPropertyGetIsSpecialName() + { + Type mot = thingy.GetType(); + MethodInfo get_ReadProperty = mot.GetMethod("get_ReadProperty"); + Assert.IsTrue(get_ReadProperty.IsSpecialName); + } [Test] public void SaveGeneratedAssembly() |