コード例 #1
0
        public void BindTo_for_DropDownItem_IEnumerable_should_create_two_items()
        {
            List <DropDownItem> list = new List <DropDownItem>
            {
                new DropDownItem {
                    Text = "", Value = ""
                },
                new DropDownItem {
                    Text = "", Value = ""
                }
            };

            builder.BindTo(list);

            Assert.Equal(2, dropDownList.Items.Count);
        }