You do not need this ... _mockery = new MockRepository();
The following should sort it our for you: // Arrange const int expected = 0; List<ITopicType> topicTypes = new List<ITopicType>(); topicTypes.Add(MockRepository.CreateStub<ITopicType>()) var schema = MockRepository.CreateStub<ISchema>(); schema.Stub(x => x.TopicTypes).Return(topicTypes.ToArray()) // Act var actual = schema.TopicTypes.Length; // Assert Assert.AreEqual(expected, actual) -- 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.
