|
From: Jim A. <JA...@th...> - 2004-11-01 13:40:49
|
<FONT face=3D"Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size= =3D2><div>The method resolution in NMock is really starting to annoy me :-)= It works for simple cases (find a method named "Foo" with a return t= ype of "Bar"), but complex scenarios with overloads and indexed prope= rties are still buggy. The fundamental problem is that the user is no= t forced to specify the attributes necessary to find a method. SetupR= esult() can just take a method name and a return value, which is really not= enough to resolve overloaded properties.</div><DIV> </DIV><DIV>We sho= uld just get rid of the whole MethodSignature thing and start using real Me= thodInfos and PropertyInfos instead. It might make the public AP= I slightly more complex, but would close a whole class of bugs.</DIV><DIV>&= nbsp;</DIV><DIV>Can I get a +/- 1 from anybody?</DIV><DIV> </DIV><DIV>= Jim</DIV></FONT>= |