I'm not sure if what I want to do is possible. I have an interface that looks like this:
public interface IObject
{
void MethodA(ObjectA arg1);
void MethodB(ObjectB arg1, ObjectC arg2);
void MethodC(ObjectD arg1, ObjectE arg2);
}
I have somthing like the following implementation:
public class ObjectImplementation : IObject
{
public void MethodA(ObjectA arg1)
{
if(arg1.Something)
{
MethodB(new ObjectB(arg1), new ObjectC(arg1));
}
else
{
MethodC(new ObjectD(arg1), new ObjectE(arg1));
}
}
}
I'm trying to write a unit test to test if those calls to methodB or methodC are being made according to the condition I have. How something like that can be achieved?