예제 #1
0
        public void VisitResultOperators()
        {
            var resultOperators = new ObservableCollection <ResultOperatorBase> {
                _resultOperatorMock1, _resultOperatorMock2
            };

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

            _mockRepository.ReplayAll();

            _testVisitor.VisitResultOperators(resultOperators, _queryModel);

            _mockRepository.VerifyAll();
        }