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);
47
bool result =
_selectionUIHandlerMock
.Object.BeginDrag(components, SelectionRules.Moveable, 0, 0);
51
Control[] dragControls =
_selectionUIHandlerMock
.Object.TestAccessor().Dynamic._dragControls;
65
_selectionUIHandlerMock
.Object.BeginDrag(components, SelectionRules.Moveable, 0, 0);
67
_selectionUIHandlerMock
.Object.DragMoved(components, offset);
69
Rectangle dragOffset =
_selectionUIHandlerMock
.Object.TestAccessor().Dynamic._dragOffset;
80
_selectionUIHandlerMock
.Object.BeginDrag(components, SelectionRules.Moveable, 0, 0);
82
_selectionUIHandlerMock
.Object.EndDrag(components, cancel: false);
84
Control[]? dragControls =
_selectionUIHandlerMock
.Object.TestAccessor().Dynamic._dragControls;
85
object? originalCoordinates =
_selectionUIHandlerMock
.Object.TestAccessor().Dynamic._originalCoordinates;
86
Rectangle dragOffset =
_selectionUIHandlerMock
.Object.TestAccessor().Dynamic._dragOffset;
99
bool result =
_selectionUIHandlerMock
.Object.QueryBeginDrag(components);
110
bool result =
_selectionUIHandlerMock
.Object.QueryBeginDrag(components);
119
bool result =
_selectionUIHandlerMock
.Object.QueryBeginDrag(components);
128
bool result =
_selectionUIHandlerMock
.Object.QueryBeginDrag(components);
140
_selectionUIHandlerMock
.Setup(h => h.GetUpdatedRect(originalRect, dragRect, updateSize))
143
Rectangle result =
_selectionUIHandlerMock
.Object.GetUpdatedRect(originalRect, dragRect, updateSize);
155
_selectionUIHandlerMock
.Setup(h => h.GetUpdatedRect(originalRect, dragRect, updateSize))
158
Rectangle result =
_selectionUIHandlerMock
.Object.GetUpdatedRect(originalRect, dragRect, updateSize);
167
_selectionUIHandlerMock
.Setup(h => h.SetCursor()).Callback(() => _control.Cursor = expectedCursor);
169
Action act =
_selectionUIHandlerMock
.Object.SetCursor;
179
Action act = () =>
_selectionUIHandlerMock
.Object.OleDragEnter(dragEventArgs);
188
Action act = () =>
_selectionUIHandlerMock
.Object.OleDragDrop(dragEventArgs);
197
Action act = () =>
_selectionUIHandlerMock
.Object.OleDragOver(dragEventArgs);
205
Action act =
_selectionUIHandlerMock
.Object.OleDragLeave;