18 references to GetComponentActions
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionService.cs (1)
145return GetComponentActions(component, ComponentActionsType.All);
System.Windows.Forms.Design.Tests (17)
System\ComponentModel\Design\DesignerActionServiceTests.cs (17)
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)); 360Assert.Empty(service.GetComponentActions(new Component(), type)); 361Assert.Empty(service.GetComponentActions(new Component(), type)); 370Assert.Empty(service.GetComponentActions(new Component(), type)); 381Assert.Empty(service.GetComponentActions(component, type)); 389Assert.Throws<ArgumentNullException>("component", () => service.GetComponentActions(null, ComponentActionsType.All));