Hi,
The problem is that True Properties dont work with inheritance. Simple example:
public interface IBaseInterface
{
int BaseProperty { set; get;}
}
public interface IExtendedInterface : IBaseInterface
{
int ExtendedProperty { set; get; }
}
[Test, Isolated]
public void mytest()
{
var testedClass = Isolate.Fake.Instance<IExtendedInterface>();
testedClass.BaseProperty = 1;
testedClass.ExtendedProperty = 2;
Assert.AreEqual(2, testedClass.ExtendedProperty);
Assert.AreEqual(1,testedClass.BaseProperty);
}
Second assertion failed:
Expected: 1 But was: 0
So base property does not store its value.
Is it any workaround on this problem? Will it be fixed soon?
br
tlucz