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;
		}