I am trying to test that an IEnumerable used as an argument is
correct, so far without success. When I try to use Arg<T>.Is.Equal
(enum) Rhino displays what looks like the deferred execution of the
IEnumerable:
// Exception: Load(equal to TransferObjects.TimeSheetDtoAssembler
+<ToActivityDtoCollection>d__1)

When I use Arg<T>.List.Equal(enum), Rhino displays the elements in the
IEnumerable, all of which look correct.

Full test is below. Is this enough info to have an idea what the
solution is?

Thank You


[Test]
        public void OnInjection_Load_NonProjectDtos()
        {
            // set up presenter
            var f = _getFacade();
            var timeSheetPresenter = _getTimeSheetPresenter(f);

            // inject the mocked widget
            var widget =
MockRepository.GenerateMock<ITimeSheetMatrixWidget>();
            timeSheetPresenter.NonProjectActivityMatrix = widget;

            Assert.That(f, Is.SameAs(timeSheetPresenter.Facade));
            widget.Expect(x => x.Load
(Arg<IEnumerable<DynamicDisplayDto>>.Is.Equal(f.NonProjectDtos)));

            widget.VerifyAllExpectations();
        }
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to