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)
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)); 358Assert.Empty(service.GetComponentActions(new Component(), type)); 359Assert.Empty(service.GetComponentActions(new Component(), type)); 368Assert.Empty(service.GetComponentActions(new Component(), type)); 379Assert.Empty(service.GetComponentActions(component, type)); 387Assert.Throws<ArgumentNullException>("component", () => service.GetComponentActions(null, ComponentActionsType.All));