Esempio n. 1
0
        private void OnControllerChanged(ICursorController controller)
        {
            if (Controller != null)
            {
                Controller.ScrollToEnd -= Controller_ScrollToEnd;
            }

            Controller = controller;
            if (Controller != null)
            {
                Controller.ScrollToEnd += Controller_ScrollToEnd;
            }
        }
		public void SetCursorController(ICursorController cursorController) {
			this.cursorController = cursorController;
		}
		private TargetCursorController GetControllerMock(ICursorController iCursor) {
			var tCController = Substitute.For<TargetCursorController> ();
			tCController.SetCursorController (iCursor);
			return tCController;
		}
		[SetUp] public void Init()
		{ 
			iCursor = GetCursorMock ();
			tCController = GetControllerMock (iCursor);	
		}