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