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

            Assert.Equal(expected, list.GetService(typeof(int)));
        }
Exemple #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);
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #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);
 }