Hey,
I have an interface and one of the functions of the interface is explicitly defined in the derived class. In my function which is to be tested, I am calling that function of the interface:
public Interface IManager
{
int ReturnInteger();
}
public class Manager:IManager
{
int IManager.ReturnInteger()
{
return 20;
}
}
public class Person
{
int ReturnValue()
{
IManager m = new Manager();
return m.ReturnInteger();
}
In the above code, I have to mock the ReturnInteger function of the IManager class. Somebody please suggest how can I do this.
Thanks and Regards