public void VisitOrderings() { var orderings = new ObservableCollection <Ordering> { _orderingMock1, _orderingMock2 }; using (_mockRepository.Ordered()) { _orderingMock1.Expect(mock => mock.Accept(_testVisitor, _queryModel, _orderByClause, 0)); _orderingMock2.Expect(mock => mock.Accept(_testVisitor, _queryModel, _orderByClause, 1)); } _mockRepository.ReplayAll(); _testVisitor.VisitOrderings(orderings, _queryModel, _orderByClause); _mockRepository.VerifyAll(); }