public void DesignerActionList_GetService_Invoke_ReturnsExpected(Component component, object expected)
        {
            var list = new DesignerActionList(component);

            Assert.Equal(expected, list.GetService(typeof(int)));
        }
Exemplo n.º 2
0
 /// <summary>Return the IDesignerHost from the designer action list.</summary>
 public static IToolboxService IToolboxService_FromActionList(DesignerActionList actionList)
 {
     return(actionList.GetService(typeof(IToolboxService)) as IToolboxService);
 }
Exemplo n.º 3
0
 /// <summary>Return IComponentChangeService from the designer action list.</summary>
 public static IComponentChangeService IComponentChangeService_FromActionList(DesignerActionList actionList)
 {
     return(actionList.GetService(typeof(IComponentChangeService)) as IComponentChangeService);
 }
Exemplo n.º 4
0
 /// <summary>Return the IDesignerHost from the designer action list.</summary>
 public static IDesignerHost IDesignerHost_FromActionList(DesignerActionList actionList)
 {
     return(actionList.GetService(typeof(IDesignerHost)) as IDesignerHost);
 }
Exemplo n.º 5
0
 /// <summary>Return the designer action UI service from the designer action list.</summary>
 public static DesignerActionUIService DesignerActionUIService_FromActionList(DesignerActionList actionList)
 {
     return(actionList.GetService(typeof(DesignerActionUIService)) as DesignerActionUIService);
 }