public void ChildAccessibleObject_Ctor_Default() { using var control = new ComboBox(); control.CreateControl(); var accessibleObject = new ComboBox.ChildAccessibleObject(control, IntPtr.Zero); Assert.NotNull(accessibleObject.TestAccessor().Dynamic._owner); Assert.True(control.IsHandleCreated); }
public void ChildAccessibleObject_Name_Default(string testName) { using var control = new ComboBox(); control.AccessibilityObject.Name = testName; control.CreateControl(); var accessibleObject = new ComboBox.ChildAccessibleObject(control, IntPtr.Zero); Assert.Equal(testName, accessibleObject.Name); Assert.True(control.IsHandleCreated); }