Hi Tolisss,
I think what you're looking for is the CallBase method.
The example is taken from
the documentation:
// C#
public class BaseClass
{
public virtual int SomeMethod()
{
return 1;
}
}
public class DerivedClass() : BaseClass
{
public override int SomeMethod()
{
return base.SomeMethod() + 1;
}
}
[Test]
public void Test()
{
Mock mock = MockManager.Mock(typeof(DerivedClass))
// mock only BaseClass.SomeMethod when called from a DerivedClass Type.
mock.CallBase.ExpectAndReturn("SomeMethod", 100);
DerivedClass d = new DerivedClass();
Assert.AreEqual(101, d.SomeMethod());
}
Let me know if this helps,