15 references to _designerHostMock
System.Windows.Forms.Design.Tests (15)
System\Windows\Forms\Design\StandardMenuStripVerbTests.cs (15)
34
_siteMock.Setup(s => s.GetService(typeof(IDesignerHost))).Returns(
_designerHostMock
.Object);
49
_serviceProviderMock.Setup(s => s.GetService(typeof(IDesignerHost))).Returns(
_designerHostMock
.Object);
52
_designerHostMock
.Setup(h => h.RootComponent).Returns(_menuStrip);
53
_designerHostMock
.Setup(h => h.CreateTransaction(It.IsAny<string>())).Returns(_mockTransaction.Object);
54
_designerHostMock
.Setup(h => h.GetService(typeof(IComponentChangeService))).Returns(_componentChangeServiceMock.Object);
55
_designerHostMock
.Setup(h => h.AddService(typeof(ToolStripKeyboardHandlingService), It.IsAny<object>()));
56
_designerHostMock
.Setup(h => h.AddService(typeof(ISupportInSituService), It.IsAny<object>()));
57
_designerHostMock
.Setup(h => h.AddService(typeof(DesignerActionService), It.IsAny<object>()));
58
_designerHostMock
.Setup(h => h.GetDesigner(_menuStrip)).Returns(_parentControlDesigner);
59
_designerHostMock
.Setup(h => h.AddService(typeof(DesignerActionUIService), It.IsAny<object>()));
73
_designerHostMock
.Setup(h => h.CreateComponent(typeof(ToolStripMenuItem), item + "ToolStripMenuItem")).Returns(toolStripMenuItemMock.Object);
76
_designerHostMock
.Setup(h => h.CreateComponent(typeof(ToolStripSeparator), "toolStripSeparator")).Returns(new Mock<ToolStripSeparator>().Object);
79
_designerHostMock
.Setup(h => h.AddService(typeof(ISelectionService), _selectionServiceMock.Object));
95
_designerHostMock
.Setup(d => d.Container).Returns(containerMock.Object);
145
host.Should().BeSameAs(
_designerHostMock
.Object);