I guess I don't follow....I see the Expectation set up but then an immediate
verify (nothing done in the middle that would satisfy the expectation).

Also not enough here to put in code and debug and make recommendations on.
Do you have a smaller sample with complete code?

Tim

On Sun, Jun 7, 2009 at 2:46 PM, Berryl Hesh <[email protected]> wrote:

>
> 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();
>        }
> >
>


-- 
Tim Barcz
ASPInsider
http://timbarcz.devlicio.us
http://www.twitter.com/timbarcz

--~--~---------~--~----~------------~-------~--~----~
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