Hi all,
I have some production code like
private bool IsTypeEqual(object theFirstObject, object theSecondObject)
{
if(theFirstObject.GetType()==theSecondObject.GetType())
{
return true;
}
else
{
return false;
}
}
Now i have to write the unit test case for this code. I am using NMock to create the object. So when i am passing the object of two different classes it should go to else part. But actually as i am mocking both the objects, so GetType() returning the MockObject type for both of the object. How can i solve this problem.