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>>();
		}
Пример #2
0
 public TextChangeAdapter(BufferTextChangeHandler bufferTextChangeHandler)
 {
     _bufferTextChangeHandler = bufferTextChangeHandler;
 }
Пример #3
0
		public TextChangeAdapter(BufferTextChangeHandler bufferTextChangeHandler)
		{
			_bufferTextChangeHandler = bufferTextChangeHandler;
		}