I have a component which I'm mocking and I want to assert that it's
SendMessages() method is called, passing in a IList<ITextDTO> of size
1 and the element at index 0 has a value of "07981000611" for it's
PhoneNumber property.
Here is the code in question:
myMockTextService.Expect(
t => t.SendMessages(Arg<IList<ITextDTO>>.List
.Count(Is.Equal(1) &&
List.Element(0, Property.Value("PhoneNumber",
"07981000611")))));
With just the List.Count constraint, it works fine. Also, while
debugging I can see the value is what I think it should be, so it must
be my expectation syntax that is incorrect.
What am I doing wrong?
--
You received this message because you are subscribed to the Google Groups
"Rhino.Mocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rhinomocks?hl=en.