Approved
Last Updated: 23 Jul 2018 13:10 by Stefan
Stefan
Created on: 13 Oct 2014 07:20
Type: Feature Request
0
Field access mocking
I'd like to be able to intercept and arrange access to fields on any class.

public class Dependency
{
  public int A;
}
..
var dep = new Dependency();
Mock.Arrange(() => dep.A).Returns(5);
Mock.ArrangeSet(() => dep.A = Arg.AnyInt).DoInstead(...);
0 comments