Sure...before I provide an example what version of RhinoMocks are you using?
(I notice you're using Record/Replay syntax and am curious if you're on a
version prior to 3.5.0.1337

Thanks,

tim

On Thu, Feb 4, 2010 at 4:47 PM, Dave <[email protected]> wrote:

> I'm new to Rhino Mocks and have been trying to figure out how to mock
> an HttpSessionStateBase object.  Where I've been confused is how to
> mock dictionary objects.  What I want to so is test that a class is
> putting stuff into my HttpSessionStateBase object.  For example, I
> have a method doing this:
>
> public void SetAValue(HttpSessionStateBase session) {
>    session["key"] = aValue;
> }
>
> public string GetAValue(HttpSessionStateBase session) {
>    return session["key"];
> }
>
>
> I want to test that this "key" is being set.   I've gotten as far as
> this:
>
>            HttpSessionStateBase mockSession =
> mockRepo.DynamicMock<HttpSessionStateBase>();
>
> but can't figure out how to test that the value is being put in and is
> being retrieve from the session object.
>
> Can someone help me out?
>
> Thanks,
> Dave.
>
> --
> 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]<rhinomocks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rhinomocks?hl=en.
>
>


-- 
Tim Barcz
Microsoft C# MVP
Microsoft 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