public void Accept() { var queryModel = ExpressionHelper.CreateQueryModel <Cook> (); var repository = new MockRepository(); var visitorMock = repository.StrictMock <IQueryModelVisitor>(); visitorMock.VisitSelectClause(_selectClause, queryModel); repository.ReplayAll(); _selectClause.Accept(visitorMock, queryModel); repository.VerifyAll(); }