#7 NMock2: Support mocking classes

open
nobody
None
1
2008-02-25
2006-05-31
Tom Kludy
No

Please add support for mocking classes with
parameterless constructors and virtual methods, as
NMock 1 supported. Without this I can't convert my old
library of mocks to NMock2.

Discussion

  • Harald M. Mueller

    Logged In: YES
    user_id=484627

    I support this feature request.
    [I gave an example for ist uses in the thread "Migration
    from NMock 1.1. to NMock 2.0: ..." for statics/singletons]

    Harald M.

     
  • matt wynne

    matt wynne - 2006-09-21

    Logged In: YES
    user_id=1208597

    I have to second this. I'm trying to test a HttpModule and
    need to be able to mock the HttpApplication and other big
    ASP.NET framework objects, can't see any other way to do it...

     
  • Richard A. Holden III

    • priority: 5 --> 1
     
  • Joannes Vermorel

    Logged In: YES
    user_id=572007
    Originator: NO

    Actually, I am try to achieve the very same thing that Matt Wynne, i.e. testing a HttpModule. Supporting the classes would be really a must-have.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks