예제 #1
0
        public void TestHandleCanvasLeftMousePressed()
        {
            SetIsDrawing(false);
            SetCurrentShapeDrawerType(ShapeDrawerType.None);
            _canvasDrawer.HandleCanvasLeftMousePressed(new Point());
            Assert.IsFalse(( bool )_target.GetFieldOrProperty(MEMBER_VARIABLE_NAME_IS_DRAWING));
            Point mousePosition = new Point();

            PrepareTestBeginDrawing();
            _canvasDrawer.HandleCanvasLeftMousePressed(mousePosition);
            AssertTestBeginDrawing(mousePosition);
        }
예제 #2
0
 public void TestHandleCanvasLeftMousePressed()
 {
     _canvasDrawer.HandleCanvasLeftMousePressed(new Point());
     Assert.IsTrue(_currentState.IsCalledHandleCanvasLeftMousePressed);
 }