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)
60Assert.Equal(expected, service.GetComponentActions(component, ComponentActionsType.All)); 61Assert.Equal(expected, service.GetComponentActions(component, ComponentActionsType.Service)); 62Assert.Empty(service.GetComponentActions(component, ComponentActionsType.Component)); 86Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All)); 87Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service)); 88Assert.Empty(service.GetComponentActions(component, ComponentActionsType.Component)); 116Assert.Equal(expected, service.GetComponentActions(component, ComponentActionsType.All)); 117Assert.Equal(expected, service.GetComponentActions(component, ComponentActionsType.Service)); 118Assert.Empty(service.GetComponentActions(component, ComponentActionsType.Component)); 142Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All)); 143Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service)); 144Assert.Empty(service.GetComponentActions(component, ComponentActionsType.Component)); 350[EnumData<ComponentActionsType>] 351[InvalidEnumData<ComponentActionsType>] 352public void GetComponentActions_NoSuchComponentNotEmpty_ReturnsEmpty(ComponentActionsType type) 363[EnumData<ComponentActionsType>] 364[InvalidEnumData<ComponentActionsType>] 365public void GetComponentActions_NoSuchComponentEmpty_ReturnsEmpty(ComponentActionsType type) 372[InvalidEnumData<ComponentActionsType>] 373public void GetComponentActions_NoSuchAction_ReturnsEmpty(ComponentActionsType type) 387Assert.Throws<ArgumentNullException>("component", () => service.GetComponentActions(null, ComponentActionsType.All));