public void DesignerActionList_GetService_Invoke_ReturnsExpected(Component component, object expected) { var list = new DesignerActionList(component); Assert.Equal(expected, list.GetService(typeof(int))); }
/// <summary>Return the IDesignerHost from the designer action list.</summary> public static IToolboxService IToolboxService_FromActionList(DesignerActionList actionList) { return(actionList.GetService(typeof(IToolboxService)) as IToolboxService); }
/// <summary>Return IComponentChangeService from the designer action list.</summary> public static IComponentChangeService IComponentChangeService_FromActionList(DesignerActionList actionList) { return(actionList.GetService(typeof(IComponentChangeService)) as IComponentChangeService); }
/// <summary>Return the IDesignerHost from the designer action list.</summary> public static IDesignerHost IDesignerHost_FromActionList(DesignerActionList actionList) { return(actionList.GetService(typeof(IDesignerHost)) as IDesignerHost); }
/// <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); }