1 write to _selectionUIHandlerMock
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\SelectionUIHandlerTests.cs (1)
22_selectionUIHandlerMock = new() { CallBase = true };
31 references to _selectionUIHandlerMock
System.Windows.Forms.Design.Tests (31)
System\Windows\Forms\Design\SelectionUIHandlerTests.cs (31)
28_selectionUIHandlerMock.Protected().Setup<IComponent>("GetComponent").Returns(_component); 29_selectionUIHandlerMock.Protected().Setup<Control>("GetControl").Returns(_control); 30_selectionUIHandlerMock.Protected().Setup<Control>("GetControl", ItExpr.IsAny<IComponent>()).Returns(_control); 31_selectionUIHandlerMock.Protected().Setup<Size>("GetCurrentSnapSize").Returns(new Size(10, 10)); 32_selectionUIHandlerMock.Protected().Setup<bool>("GetShouldSnapToGrid").Returns(true); 33_selectionUIHandlerMock.Protected().Setup<object>("GetService", typeof(IDesignerHost)).Returns(_designerHostMock.Object); 34_selectionUIHandlerMock.Protected().Setup<object>("GetService", typeof(IComponentChangeService)).Returns(_changedServiceMock.Object); 47bool result = _selectionUIHandlerMock.Object.BeginDrag(components, SelectionRules.Moveable, 0, 0); 51Control[] dragControls = _selectionUIHandlerMock.Object.TestAccessor().Dynamic._dragControls; 65_selectionUIHandlerMock.Object.BeginDrag(components, SelectionRules.Moveable, 0, 0); 67_selectionUIHandlerMock.Object.DragMoved(components, offset); 69Rectangle dragOffset = _selectionUIHandlerMock.Object.TestAccessor().Dynamic._dragOffset; 80_selectionUIHandlerMock.Object.BeginDrag(components, SelectionRules.Moveable, 0, 0); 82_selectionUIHandlerMock.Object.EndDrag(components, cancel: false); 84Control[]? dragControls = _selectionUIHandlerMock.Object.TestAccessor().Dynamic._dragControls; 85object? originalCoordinates = _selectionUIHandlerMock.Object.TestAccessor().Dynamic._originalCoordinates; 86Rectangle dragOffset = _selectionUIHandlerMock.Object.TestAccessor().Dynamic._dragOffset; 99bool result = _selectionUIHandlerMock.Object.QueryBeginDrag(components); 110bool result = _selectionUIHandlerMock.Object.QueryBeginDrag(components); 119bool result = _selectionUIHandlerMock.Object.QueryBeginDrag(components); 128bool result = _selectionUIHandlerMock.Object.QueryBeginDrag(components); 140_selectionUIHandlerMock.Setup(h => h.GetUpdatedRect(originalRect, dragRect, updateSize)) 143Rectangle result = _selectionUIHandlerMock.Object.GetUpdatedRect(originalRect, dragRect, updateSize); 155_selectionUIHandlerMock.Setup(h => h.GetUpdatedRect(originalRect, dragRect, updateSize)) 158Rectangle result = _selectionUIHandlerMock.Object.GetUpdatedRect(originalRect, dragRect, updateSize); 167_selectionUIHandlerMock.Setup(h => h.SetCursor()).Callback(() => _control.Cursor = expectedCursor); 169Action act = _selectionUIHandlerMock.Object.SetCursor; 179Action act = () => _selectionUIHandlerMock.Object.OleDragEnter(dragEventArgs); 188Action act = () => _selectionUIHandlerMock.Object.OleDragDrop(dragEventArgs); 197Action act = () => _selectionUIHandlerMock.Object.OleDragOver(dragEventArgs); 205Action act = _selectionUIHandlerMock.Object.OleDragLeave;