Exemple #1
0
        public void VisitBodyClauses()
        {
            var bodyClauses = new ObservableCollection <IBodyClause> {
                _bodyClauseMock1, _bodyClauseMock2
            };

            using (_mockRepository.Ordered())
            {
                _bodyClauseMock1.Expect(mock => mock.Accept(_testVisitor, _queryModel, 0));
                _bodyClauseMock2.Expect(mock => mock.Accept(_testVisitor, _queryModel, 1));
            }

            _mockRepository.ReplayAll();

            _testVisitor.VisitBodyClauses(bodyClauses, _queryModel);

            _mockRepository.VerifyAll();
        }