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); }
public void TestHandleCanvasLeftMousePressed() { _canvasDrawer.HandleCanvasLeftMousePressed(new Point()); Assert.IsTrue(_currentState.IsCalledHandleCanvasLeftMousePressed); }