public void Initialize()
        {
            _tokenizer = new Tokenizer();
            _tokenizedBufferEntity = new Entity<LinkedList<Token>>();
            _textBuffer = MockRepository.GenerateStub<ITextBufferAdapter>();

            _bufferTextChangeHandler = new BufferTextChangeHandler(
                _textBuffer,
                _tokenizedBufferEntity);

            _bufferTextChangeHandler.TokenChanged += MockRepository.GenerateStub<EventHandler<TokenChangedEventArgs>>();
        }
 public TextChangeAdapter(BufferTextChangeHandler bufferTextChangeHandler)
 {
     _bufferTextChangeHandler = bufferTextChangeHandler;
 }