public void IsPrimaryControl() { Assert.AreEqual(true, controlDictionary.IsPrimaryControl(ControlType.Button, string.Empty, null)); Assert.AreEqual(true, controlDictionary.IsPrimaryControl(ControlType.Menu, string.Empty, null)); Assert.AreEqual(true, controlDictionary.IsPrimaryControl(ControlType.Pane, "fsdfhsdfjSysDateTimePick32ffdgdg", null)); Assert.AreEqual(true, controlDictionary.IsPrimaryControl(ControlType.Pane, "fsdfhsdfj", null)); Assert.AreEqual(true, controlDictionary.IsPrimaryControl(ControlType.Tab, "fsdfhsdfj", null)); Assert.AreEqual(false, controlDictionary.IsPrimaryControl(ControlType.TabItem, "fsdfhsdfj", null)); Assert.AreEqual(true, controlDictionary.IsPrimaryControl(ControlType.Group, null, null)); Assert.AreEqual(true, controlDictionary.IsPrimaryControl(ControlType.Image, "WindowsForms10.Window.8.app.0.33c0d9d", null)); Assert.AreEqual(true, controlDictionary.IsPrimaryControl(ControlType.Pane, "WindowsForms10.Window.8.app.0.33c0d9d", "PropertyGrid")); }