コード例 #1
0
        public void DesignerActionItemCollection_CopyTo_Invoke_Success()
        {
            var collection = new DesignerActionItemCollection();
            var value      = new SubDesignerActionItem("displayName", "category", "description");

            collection.Add(value);

            var array = new DesignerActionItem[3];

            collection.CopyTo(array, 1);
            Assert.Equal(new DesignerActionItem[] { null, value, null }, array);
        }