#19 Mock object type does not return the implementing interface

closed-works-for-me
nmock2 (11)
2
2008-01-13
2007-04-04
Gerd Saurer
No

Following Example:

Mockery mocks = new Mockery();
ITestType t = mocks.NewMock<ITestType>();

t.GetType().GetInterfaces()
returns not the ITestType interface

Discussion

    • labels: 474867 --> nmock2
    • priority: 5 --> 2
    • assigned_to: nobody --> aciddeath
     
  • Logged In: YES
    user_id=591527
    Originator: NO

    Works for me based on a checkout of CVS, look for the fix in the RC2 coming soon.

     
    • status: open --> closed-works-for-me