Using FakeItEasy, is there a way to fake the installer of record properties only?
The interface I have to work with looks something like this:
Interface IMyInterface
{
String Foo { set; }
}
I tried the following, but the syntax does not work.
IMyInterface _myObject = A.Fake<IMyInterface>();
A.CallTo(() => _myObject.Foo).Invokes((String foo) => {
//save off foo
});
I also tried this, but with a syntax error.
IMyInterface _myObject = A.Fake<IMyInterface>();
A.CallTo(() => _myObject.set_Foo).Invokes((String foo) => {
//save off foo
});
source
share