I am using this code to verify a behavior of a method I am testing:
_repository.Expect(f => f.FindAll(t => t.STATUS_CD == "A"))
.Returns(new List<JSOFile>())
.AtMostOnce()
.Verifiable();
_repository is defined as:
private Mock<IRepository<JSOFile>> _repository;
When my test is run, I get this exception:
Expression t => (t.STATUS_CD = "A") is not supported.
Can someone please tell me how I can test this behavior if I can't pass an expression into the Expect method?
Thanks!!