ContainsKey() 공개 메소드

public ContainsKey ( string key ) : bool
key string
리턴 bool
예제 #1
0
        public void MenuItemCollection_ContainsKey_Invoke_ReturnsExpected(string key, bool expected)
        {
            var menu = new SubMenu(new MenuItem[] { new MenuItem {
                                                        Name = "name"
                                                    } });
            var collection = new Menu.MenuItemCollection(menu);

            Assert.Equal(expected, collection.ContainsKey(key));
        }