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