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