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

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