Ayende,
I am trying to use Rhino Mocks in following scenario:
void classA.Method1()
{
//some stuff
if(classA.Method2(var))
{
//Do something
}
else
{
//Do something else
}
//some other stuff
}
Now, I created partial mock for the class and set expectation for
Method2 like so:
Expect.Call(classAMock.Method2(null)).IgnoreArguments().Return(true);
Real implementation of the method returns false.
When I execute the test it goes through the path when Method2 returns
false.
How can that be?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Rhino.Mocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/RhinoMocks?hl=en
-~----------~----~----~----~------~----~------~--~---