Exemple #1
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            this.AddPropertyItem(new DesignerActionPropertyItem("Text", "Text", "500", "Change the Text of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("EmptyText", "Empty Text", "500", "Change the Text of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("AllowBlank", "AllowBlank", "500", "Ensure the length of the text is > 0"));
            this.AddPropertyItem(new DesignerActionPropertyItem("InputType", "Input Type", "500", "Change the input type of the control. [Text or Password]"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Width", "Width", "500", "Change the Width of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Grow", "Grow", "500", "Change the TextField to automatically grow and shrink to its content"));

            DesignerActionPropertyItem growmin = new DesignerActionPropertyItem("GrowMin", "Grow Min Size", "500", "The minimum width to allow when grow = true");
            DesignerActionPropertyItem growmax = new DesignerActionPropertyItem("GrowMax", "Grow Max Size", "500", "The maximum width to allow when grow = true");

            if (((TextField)this.Control).Grow)
            {
                this.AddPropertyItem(growmin);
                this.AddPropertyItem(growmax);
            }
            else
            {
                this.RemovePropertyItem(growmin);
                this.RemovePropertyItem(growmax);
            }

            return(base.GetSortedActionItems());
        }
Exemple #2
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            this.AddPropertyItem(new DesignerActionPropertyItem("HideInDesign", "Hide", "", "Hide the Ext.Net ResourceManager during Design-Time editing"));

            this.AddPropertyItem(new DesignerActionPropertyItem("Theme", "Theme", "500", "Sets the current Theme"));

            this.AddPropertyItem(new DesignerActionPropertyItem("CleanResourceUrl", "CleanResourceUrl", "500", "Specifies whether the Ext.Net ResourceManager will output 'clean' Url's when linking to Embedded Resources"));
            this.AddPropertyItem(new DesignerActionPropertyItem("QuickTips", "QuickTips", "500", "Enable QuickTips"));
            this.AddPropertyItem(new DesignerActionPropertyItem("DisableViewState", "DisableViewState", "500", "Disable ViewState from the page rendering"));
            //this.AddPropertyItem(new DesignerActionPropertyItem("SourceFormatting", "SourceFormatting", "500", "Specifies whether the scripts rendered to the page should be formatted"));

            this.AddPropertyItem(new DesignerActionPropertyItem("ScriptMode", "ScriptMode", "500", "Specifies whether the Scripts should be rendered in Release or Debug mode"));

            this.AddPropertyItem(new DesignerActionPropertyItem("ScriptAdapter", "ScriptAdapter", "500", "Gets the current script Adapter"));
            this.AddPropertyItem(new DesignerActionPropertyItem("InitScriptMode", "InitScriptMode", "500", "Render config script into the page or as separate JavaScript file"));
            //this.AddPropertyItem(new DesignerActionPropertyItem("StateProvider", "StateProvider", "500", "Specifies the state provider"));

            this.AddPropertyItem(new DesignerActionPropertyItem("RenderStyles", "RenderStyles", "500", "Determines how or if the required Styles should be rendered to the Page"));

            this.AddPropertyItem(new DesignerActionPropertyItem("RenderScripts", "RenderScripts", "500", "Determines how or if the required Scripts should be rendered to the Page"));

            DesignerActionPropertyItem resourcePath = new DesignerActionPropertyItem("ResourcePath", "ResourcePath", "500", "Gets the prefix of the Url path to the base ~/Ext.Net/ folder containing the resources files for this project");

            if (this.RenderScripts == ResourceLocationType.File || this.RenderStyles == ResourceLocationType.File)
            {
                this.AddPropertyItem(resourcePath);
            }
            else
            {
                this.RemovePropertyItem(resourcePath);
            }

            return(base.GetSortedActionItems());
        }
            public override DesignerActionItemCollection GetSortedActionItems()
            {
                var items = new DesignerActionItemCollection();
                var item  = new DesignerActionPropertyItem("DataSource", "Choose Data Source");

                item.RelatedComponent = m_owner.Component;
                items.Add(item);
                return(items);
            }
Exemple #4
0
        public void DesignerActionPropertyItem_RelatedComponent_getter_setter()
        {
            DesignerActionPropertyItem underTest = new DesignerActionPropertyItem("name", "displayname");

            Button button = new Button();

            underTest.RelatedComponent = button;
            Assert.Equal(button, underTest.RelatedComponent);
        }
        public void Constructor()
        {
            DesignerActionPropertyItem item =
                new DesignerActionPropertyItem("myMember", "myDisplayName");

            Assert.AreEqual("myMember", item.MemberName, "#1");
            Assert.AreEqual("myDisplayName", item.DisplayName, "#2");
            Assert.IsNull(item.Category, "#3");
            Assert.IsNull(item.Description, "#4");
        }
Exemple #6
0
        public void DesignerActionPropertyItem_Constructor3()
        {
            DesignerActionPropertyItem underTest = new DesignerActionPropertyItem("memberName", "displayName");

            Assert.NotNull(underTest);
            Assert.Equal("memberName", underTest.MemberName);
            Assert.Equal("displayName", underTest.DisplayName);
            Assert.Null(underTest.Category);
            Assert.Null(underTest.Description);
        }
Exemple #7
0
        public void DesignerActionPropertyItem_Constructor(string memberName, string displayName, string category, string description)
        {
            DesignerActionPropertyItem underTest = new DesignerActionPropertyItem(memberName, displayName, category, description);

            Assert.NotNull(underTest);
            Assert.Equal(memberName, underTest.MemberName);
            Assert.Equal(displayName, underTest.DisplayName);
            Assert.Equal(category, underTest.Category);
            Assert.Equal(description, underTest.Description);
        }
Exemple #8
0
            public override DesignerActionItemCollection GetSortedActionItems()
            {
                DesignerActionItemCollection items = new DesignerActionItemCollection();
                DesignerActionPropertyItem   item  = new DesignerActionPropertyItem("DataSource", System.Design.SR.GetString("DataGridViewChooseDataSource"))
                {
                    RelatedComponent = this.owner.Component
                };

                items.Add(item);
                return(items);
            }
Exemple #9
0
 public void AddPropertyItem(DesignerActionPropertyItem item)
 {
     foreach (DesignerActionPropertyItem property in this.Properties)
     {
         if (item.MemberName == property.MemberName && item.Category == property.Category)
         {
             return;
         }
     }
     this.Properties.Add(item);
 }
Exemple #10
0
 public void RemovePropertyItem(DesignerActionPropertyItem item)
 {
     foreach (DesignerActionPropertyItem property in this.Properties)
     {
         if (item.MemberName == property.MemberName && item.Category == property.Category)
         {
             this.Properties.Remove(property);
             return;
         }
     }
 }
Exemple #11
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            this.AddHeaderItem(new DesignerActionHeaderItem("Positioning", "600"));
            this.AddHeaderItem(new DesignerActionHeaderItem("Actions", "700"));

            this.AddPropertyItem(new DesignerActionPropertyItem("Title", "Title", "500", "Change the Title of the Window"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Width", "Width", "500", "Change the Width of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Height", "Height", "500", "Change the Height of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Icon", "Icon", "500", "Set an icon to use in the Title bar"));

            this.AddPropertyItem(new DesignerActionPropertyItem("Hidden", "Show on Page Load", "600", "Automatically show the window on Page Load"));
            this.AddPropertyItem(new DesignerActionPropertyItem("InitCenter", "Center on Page Load", "600", "Center this Window in the viewport on Page Load"));

            DesignerActionPropertyItem pageX = new DesignerActionPropertyItem("PageX", "PageX", "600", "The position in pixels from the left of the view port (browser window)");
            DesignerActionPropertyItem pageY = new DesignerActionPropertyItem("PageY", "PageY", "600", "The position in pixels from the addToStart of the view port (browser window)");

            if (this.InitCenter)
            {
                this.RemovePropertyItem(pageX);
                this.RemovePropertyItem(pageY);
            }
            else
            {
                this.AddPropertyItem(pageX);
                this.AddPropertyItem(pageY);
            }

            this.AddPropertyItem(new DesignerActionPropertyItem("Collapsible", "Collapsible", "700", "Allow the user to collapse the window"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Closable", "Closable", "700", "Allow the user to close the window"));

            DesignerActionPropertyItem closeAction = new DesignerActionPropertyItem("CloseAction", "Close Action", "700", "'Close' to destroy the Window, 'Hide' to simply hide the window");
            DesignerActionPropertyItem maximizable = new DesignerActionPropertyItem("Maximizable", "Maximizable", "700", "Allow the user to maximize the window");
            DesignerActionPropertyItem modal       = new DesignerActionPropertyItem("Modal", "Modal", "700", "Make the window modal and mask everything behind it when displayed");

            this.RemovePropertyItem(closeAction);
            this.RemovePropertyItem(maximizable);
            this.RemovePropertyItem(modal);

            if (this.Closable)
            {
                this.AddPropertyItem(closeAction);
                this.AddPropertyItem(maximizable);
                this.AddPropertyItem(modal);
            }
            else
            {
                this.RemovePropertyItem(closeAction);
                this.AddPropertyItem(maximizable);
                this.AddPropertyItem(modal);
            }

            return(base.GetSortedActionItems());
        }
            public override DesignerActionItemCollection GetSortedActionItems()
            {
                DesignerActionItemCollection items = new DesignerActionItemCollection();

                items.Add(new DesignerActionHeaderItem("Ruler Options", "Ruler"));
                DesignerActionItem propItem;

                propItem = new DesignerActionTextItem("Set the appearance of the ruler inside the editor's container.", "Ruler");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionPropertyItem("VRuler", "&Vertical Ruler", "Ruler");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionPropertyItem("HRuler", "&Horizontal Ruler", "Ruler");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionHeaderItem("UI Options", "UI");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionTextItem("Set the appearance of the toolbar and strip elements.", "UI");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionPropertyItem("ShowToolbar", "&Show Toolbar", "UI");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionPropertyItem("DockToolbar", "&Dock Toolbar", "UI");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionPropertyItem("ShowMenuStrip", "&Show MenuStrip", "UI");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionPropertyItem("ShowStatusStrip", "&Show StatusStrip", "UI");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionHeaderItem("Information and Layout", "Layout");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionTextItem("Informations about current layout and dock option.", "Layout");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionTextItem(String.Format(" Size: {0} x {1}", ((Control)editor).Size.Width, ((Control)editor).Size.Height), "Layout");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionTextItem(String.Format(" Location: x={0} y={1}", ((Control)editor).Location.X, ((Control)editor).Location.Y), "Layout");
                propItem.AllowAssociate = true;
                items.Add(propItem);
                propItem = new DesignerActionPropertyItem("Dock", "&Dock Editor", "Layout");
                propItem.AllowAssociate = true;
                items.Add(propItem);

                return(items);
            }
Exemple #13
0
        public void DesignerActionPropertyItem_RelatedComponent_Set_GetReturnsExpected(IComponent value)
        {
            var item = new DesignerActionPropertyItem("memberName", "displayName", "category", "description")
            {
                RelatedComponent = value
            };

            Assert.Same(value, item.RelatedComponent);

            // Set same.
            item.RelatedComponent = value;
            Assert.Same(value, item.RelatedComponent);
        }
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection dc = new DesignerActionItemCollection();

            dc.Add(new DesignerActionPropertyItem("Mode", "缩放模式", "Pms控件属性"));
            DesignerActionPropertyItem item = new DesignerActionPropertyItem("Image", "选择图像", "Pms控件属性", "背景图片");

            dc.Add(item);
            DesignerActionPropertyItem item2 = new DesignerActionPropertyItem("ErrorImage", "错误时显示的图像", "Pms控件属性", "错误图片");

            dc.Add(item2);
            return(dc);
        }
Exemple #15
0
            public override DesignerActionItemCollection GetSortedActionItems()
            {
                DesignerActionItemCollection items = new DesignerActionItemCollection();

                DesignerActionMethodItem   addItem    = new DesignerActionMethodItem(this, "OnAddTabPanel", "Add Tab Panel", true);
                DesignerActionMethodItem   removeItem = new DesignerActionMethodItem(this, "OnRemoveTabPanel", "Remove Tab Panel", true);
                DesignerActionPropertyItem hideContentOverflowItem = new DesignerActionPropertyItem("HideOverflowContent", "Hide overflow content at design-time");

                items.Add(addItem);
                items.Add(removeItem);
                items.Add(hideContentOverflowItem);

                return(items);
            }
Exemple #16
0
        DesignerActionItem IActionGetItem.GetItem(DesignerActionList actions, System.Reflection.MemberInfo mbr)
        {
            var ret = new DesignerActionPropertyItem(mbr.Name, DisplayName, Category, Description)
            {
                AllowAssociate = AllowAssociate
            };

            if (!string.IsNullOrEmpty(Condition))
            {
                ret.Properties.Add("Condition", Condition);
            }
            ret.Properties.Add("Order", DisplayOrder);
            return(ret);
        }
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = base.GetSortedActionItems();
            DesignerActionPropertyItem   item  = items.OfType <DesignerActionPropertyItem>().FirstOrDefault(x => x.MemberName == "FormatString");

            if (item != null)
            {
                items.Remove(item);
            }
            items.Add(new DesignerActionPropertyItem("WidthF", "WidthF"));
            items.Add(new DesignerActionPropertyItem("HeightF", "HeightF"));
            items.Add(new DesignerActionPropertyItem("LocationX", "LocationX"));
            items.Add(new DesignerActionPropertyItem("LocationY", "LocationY"));
            return(items);
        }
Exemple #18
0
        public void DesignerActionPropertyItem_Ctor_String_String(string memberName, string displayName, string expectedDisplayName)
        {
            var item = new DesignerActionPropertyItem(memberName, displayName);

            Assert.Equal(memberName, item.MemberName);
            Assert.Equal(expectedDisplayName, item.DisplayName);
            Assert.Null(item.Category);
            Assert.Null(item.Description);
            Assert.False(item.AllowAssociate);
            Assert.Empty(item.Properties);
            Assert.Same(item.Properties, item.Properties);
            Assert.IsType <HybridDictionary>(item.Properties);
            Assert.True(item.ShowInSourceView);
            Assert.Null(item.RelatedComponent);
        }
Exemple #19
0
            public override DesignerActionItemCollection GetSortedActionItems()
            {
                DesignerActionItemCollection items = new DesignerActionItemCollection();

                PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(this._designer.Component);
                PropertyDescriptor           actionableProperty;

                actionableProperty = properties["DataGroupField"];
                if (actionableProperty != null && actionableProperty.IsBrowsable)
                {
                    DesignerActionPropertyItem dataGroupField = new DesignerActionPropertyItem("DataGroupField", "DataGroupField", "Data");
                    items.Add(dataGroupField);
                }

                return(items);
            }
Exemple #20
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            this.AddPropertyItem(new DesignerActionPropertyItem("Border", "Border", "500", "Add/Remove Border from TabPanel"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Plain", "Plain", "500", "Render the TabPanel without a background image"));
            this.AddPropertyItem(new DesignerActionPropertyItem("AutoPostBack", "AutoPostBack", "500", "Automatically PostBack on Tab Changed"));
            this.AddPropertyItem(new DesignerActionPropertyItem("EnableTabScroll", "Enable Tab Scrolling", "500", "Enable scrolling to tabs that may be invisible"));
            this.AddPropertyItem(new DesignerActionPropertyItem("TabPosition", "Tab Position", "500", "The position where the Tabs should be rendered"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Width", "Width", "500", "Change the Width of the TabPanel"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Height", "Height", "500", "Change the Height of the TabPanel"));
            this.AddPropertyItem(new DesignerActionPropertyItem("ActiveTabIndex", "Active Tab", "500", "The numeric index of the Tab that should be initially activated"));

            DesignerActionHeaderItem   activeTabHeader = new DesignerActionHeaderItem("Edit Tab Properties", "600");
            DesignerActionPropertyItem tabs            = new DesignerActionPropertyItem("Tabs", "Select Tab", "600");
            DesignerActionPropertyItem tabID           = new DesignerActionPropertyItem("TabID", "ID", "600");
            DesignerActionPropertyItem title           = new DesignerActionPropertyItem("Title", "Title", "600");
            DesignerActionPropertyItem iconCls         = new DesignerActionPropertyItem("Icon", "Icon", "600", "The Icon to use");
            DesignerActionPropertyItem closable        = new DesignerActionPropertyItem("Closable", "Closable", "600", "Check to disable Tab");
            DesignerActionPropertyItem disabled        = new DesignerActionPropertyItem("Disabled", "Disabled", "600", "Allow the user to close the Tab");

            if (this.ActiveTabIndexIsValid)
            {
                this.AddHeaderItem(activeTabHeader);
                this.AddPropertyItem(tabID);
                this.AddPropertyItem(title);
                this.AddPropertyItem(iconCls);
                this.AddPropertyItem(closable);
                this.AddPropertyItem(disabled);
            }
            else
            {
                this.RemovePropertyItem(disabled);
                this.RemovePropertyItem(closable);
                this.RemovePropertyItem(iconCls);
                this.RemovePropertyItem(title);
                this.RemovePropertyItem(tabID);
                this.RemoveHeaderItem(activeTabHeader);
            }

            this.AddHeaderItem(new DesignerActionHeaderItem("Operations", "700"));
            this.AddMethodItem(new DesignerActionMethodItem(this, "AddTabAtBegin", "Insert Tab at Start", "700", "Insert Tab at Start"));
            this.AddMethodItem(new DesignerActionMethodItem(this, "AddTabAtEnd", "Insert Tab at End", "700", "Insert Tab at End"));
            this.AddMethodItem(new DesignerActionMethodItem(this, "AddTabAfterActive", "Insert Tab after Active Tab", "700", "Insert Tab after Active Tab"));
            this.AddMethodItem(new DesignerActionMethodItem(this, "RemoveActiveTab", "Remove Active Tab", "700", "Remove Active Tab"));

            return(base.GetSortedActionItems());
        }
Exemple #21
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            this.AddHeaderItem(new DesignerActionHeaderItem("Positioning", "600"));
            this.AddHeaderItem(new DesignerActionHeaderItem("Actions", "700"));

            this.AddPropertyItem(new DesignerActionPropertyItem("Title", "Title", "500", "Change the Title of the Window"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Width", "Width", "500", "Change the Width of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Height", "Height", "500", "Change the Height of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Icon", "Icon", "500", "Set an icon to use in the Title bar"));
            this.AddPropertyItem(new DesignerActionPropertyItem("BodyStyle", "BodyStyle", "500", "Custom CSS styles to be applied to the body element"));

            DesignerActionMethodItem add    = new DesignerActionMethodItem(this, "AddPadding", "Add Body Padding", "500", "Add 6px of padding to the Body");
            DesignerActionMethodItem remove = new DesignerActionMethodItem(this, "RemovePadding", "Remove Body Padding", "500", "Remove the 6px of padding from the Body");

            if (!this.paddingAdded && !((PanelBase)this.Control).BodyStyle.Contains(this.padding))
            {
                this.AddMethodItem(add);
                this.RemoveMethodItem(remove);
            }
            else
            {
                this.AddMethodItem(remove);
                this.RemoveMethodItem(add);
            }

            this.AddPropertyItem(new DesignerActionPropertyItem("ShowOnLoad", "Show on Page Load", "600", "Automatically show the window on Page Load"));
            this.AddPropertyItem(new DesignerActionPropertyItem("CenterOnLoad", "Center on Page Load", "600", "Centers this window in the viewport on Page Load"));

            DesignerActionPropertyItem pageX = new DesignerActionPropertyItem("PageX", "PageX", "600", "The position in pixels from the left of the view port (browser window)");
            DesignerActionPropertyItem pageY = new DesignerActionPropertyItem("PageY", "PageY", "600", "The position in pixels from the addToStart of the view port (browser window)");

            if (this.CenterOnLoad)
            {
                this.RemovePropertyItem(pageX);
                this.RemovePropertyItem(pageY);
            }
            else
            {
                this.AddPropertyItem(pageX);
                this.AddPropertyItem(pageY);
            }

            this.AddPropertyItem(new DesignerActionPropertyItem("Collapsible", "Collapsible", "700", "Allow the user to collapse the window"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Closable", "Closable", "700", "Allow the user to close the window"));

            DesignerActionPropertyItem closeAction = new DesignerActionPropertyItem("CloseAction", "Close Action", "700", "'Close' to destroy the Window, 'Hide' to simply hide the window");
            DesignerActionPropertyItem maximizable = new DesignerActionPropertyItem("Maximizable", "Maximizable", "700", "Allow the user to maximize the window");
            DesignerActionPropertyItem modal       = new DesignerActionPropertyItem("Modal", "Modal", "700", "Make the window modal and mask everything behind it when displayed");

            this.RemovePropertyItem(closeAction);
            this.RemovePropertyItem(maximizable);
            this.RemovePropertyItem(modal);

            if (this.Closable)
            {
                this.AddPropertyItem(closeAction);
                this.AddPropertyItem(maximizable);
                this.AddPropertyItem(modal);
            }
            else
            {
                this.RemovePropertyItem(closeAction);
                this.AddPropertyItem(maximizable);
                this.AddPropertyItem(modal);
            }

            return(base.GetSortedActionItems());
        }
        public void DesignerActionList_GetSortedActionItems_CustomClass_ReturnsExpected()
        {
            var list = new SubDesignerActionList();
            DesignerActionItemCollection items = list.GetSortedActionItems();

            Assert.Equal(8, items.Count);

            DesignerActionMethodItem item1 = Assert.IsType <DesignerActionMethodItem>(items[0]);

            Assert.Equal("AnnotatedMethod", item1.MemberName);
            Assert.Equal("DisplayName", item1.DisplayName);
            Assert.Equal("Description", item1.Description);
            Assert.Equal("Category", item1.Category);

            DesignerActionPropertyItem item2 = Assert.IsType <DesignerActionPropertyItem>(items[1]);

            Assert.Equal("AnnotatedProperty", item2.MemberName);
            Assert.Equal("DisplayName", item2.DisplayName);
            Assert.Equal("Description", item2.Description);
            Assert.Equal("Category", item2.Category);

            DesignerActionMethodItem item3 = Assert.IsType <DesignerActionMethodItem>(items[2]);

            Assert.Equal("EmptyAnnotatedMethod", item3.MemberName);
            Assert.Equal("EmptyAnnotatedMethod", item3.DisplayName);
            Assert.Empty(item3.Description);
            Assert.Empty(item3.Category);

            DesignerActionPropertyItem item4 = Assert.IsType <DesignerActionPropertyItem>(items[3]);

            Assert.Equal("EmptyAnnotatedProperty", item4.MemberName);
            Assert.Equal("EmptyAnnotatedProperty", item4.DisplayName);
            Assert.Empty(item4.Description);
            Assert.Empty(item4.Category);

            DesignerActionMethodItem item5 = Assert.IsType <DesignerActionMethodItem>(items[4]);

            Assert.Equal("NullAnnotatedMethod", item5.MemberName);
            Assert.Equal("NullAnnotatedMethod", item5.DisplayName);
            Assert.Null(item5.Description);
            Assert.Null(item5.Category);

            DesignerActionPropertyItem item6 = Assert.IsType <DesignerActionPropertyItem>(items[5]);

            Assert.Equal("NullAnnotatedProperty", item6.MemberName);
            Assert.Equal("NullAnnotatedProperty", item6.DisplayName);
            Assert.Null(item6.Description);
            Assert.Null(item6.Category);

            DesignerActionMethodItem item7 = Assert.IsType <DesignerActionMethodItem>(items[6]);

            Assert.Equal("PublicMethod", item7.MemberName);
            Assert.Equal("PublicMethod", item7.DisplayName);
            Assert.Empty(item7.Description);
            Assert.Empty(item7.Category);

            DesignerActionPropertyItem item8 = Assert.IsType <DesignerActionPropertyItem>(items[7]);

            Assert.Equal("PublicProperty", item8.MemberName);
            Assert.Equal("PublicProperty", item8.DisplayName);
            Assert.Empty(item8.Description);
            Assert.Empty(item8.Category);
        }