I'm new to rhino mocks, so please bear with me, but this is my method:

 public void Foo(CustomClass1 Param1)
        {
            CustomClass2 foo = new CustomClass2(Private void method, Param1)
                { Property = _property };
            foo.Start();
        }

And I want to assert that foo.Start() was called...

[TestMethod()]
        public void FooTest()
        {
            var target = 
MockRepository.GenerateMock<CustomClass_Accessor>();
            var Param1 = MockRepository.GenerateMock<CustomClass1>();
            target.Foo( Param1 );      
        }

That's where I am now, but I don't see how to access the constructed foo or 
its methods.

Thanks a lot!

Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rhinomocks/-/vlc9lvATtyoJ.
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