Using Rhino Mocks:
var list = MockRepository.GenerateMock<List<Foo>>();
list.Expect(e => e.Any(Arg<Func<Foo, bool>>.Is.Anything)).Return(false);
It throws
ArgumentNullException: Value cannot be null. Parameter name: predicate
How do I write this well?
Aucun commentaire:
Enregistrer un commentaire