Hi folks, Apologies for the newbie question, but not getting this AAA model stuff.
Specifically, I thought that if one is doing the AAA model the following should work. But it doesn't. If I uncomment the _mockery.ReplayAll(); line however, the test passes. Am I missing something here? Or is ReplayAll() required? // Setup _mockery = new MockRepository(); // Arrange List<ITopicType> topicTypes = new List<ITopicType>(); topicTypes.Add(_mockery.Stub<ITopicType>()); var tmSchema = _mockery.Stub<ISchema>(); tmSchema.Stub(x => x.TopicTypes).Return(topicTypes.ToArray()); // if uncomment this line the test passes, otherwise it fails.. //_mockery.ReplayAll(); // Act var result = tmSchema.TopicTypes; //assert Assert.IsTrue(result.Length > 0); --- Thanks in advance! BTW I am using Rhino Mocks 3.6 -- 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.
