26 references to ComponentActionsType
System.Windows.Forms.Design (5)
System\ComponentModel\Design\DesignerActionService.cs (5)
145return GetComponentActions(component, ComponentActionsType.All); 148public virtual DesignerActionListCollection GetComponentActions(IComponent component, ComponentActionsType type) 155case ComponentActionsType.All: 159case ComponentActionsType.Component: 162case ComponentActionsType.Service:
System.Windows.Forms.Design.Tests (21)
System\ComponentModel\Design\DesignerActionServiceTests.cs (21)
62Assert.Equal(expected, service.GetComponentActions(component, ComponentActionsType.All)); 63Assert.Equal(expected, service.GetComponentActions(component, ComponentActionsType.Service)); 64Assert.Empty(service.GetComponentActions(component, ComponentActionsType.Component)); 88Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All)); 89Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service)); 90Assert.Empty(service.GetComponentActions(component, ComponentActionsType.Component)); 118Assert.Equal(expected, service.GetComponentActions(component, ComponentActionsType.All)); 119Assert.Equal(expected, service.GetComponentActions(component, ComponentActionsType.Service)); 120Assert.Empty(service.GetComponentActions(component, ComponentActionsType.Component)); 144Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All)); 145Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service)); 146Assert.Empty(service.GetComponentActions(component, ComponentActionsType.Component)); 352[EnumData<ComponentActionsType>] 353[InvalidEnumData<ComponentActionsType>] 354public void GetComponentActions_NoSuchComponentNotEmpty_ReturnsEmpty(ComponentActionsType type) 365[EnumData<ComponentActionsType>] 366[InvalidEnumData<ComponentActionsType>] 367public void GetComponentActions_NoSuchComponentEmpty_ReturnsEmpty(ComponentActionsType type) 374[InvalidEnumData<ComponentActionsType>] 375public void GetComponentActions_NoSuchAction_ReturnsEmpty(ComponentActionsType type) 389Assert.Throws<ArgumentNullException>("component", () => service.GetComponentActions(null, ComponentActionsType.All));