public void VScrollBarAccessibleObject_Ctor_Default(bool createControl, AccessibleRole accessibleRole) { using var vertScrollBar = new VScrollBar(); if (createControl) { vertScrollBar.CreateControl(); } AccessibleObject accessibleObject = vertScrollBar.AccessibilityObject; Assert.NotNull(accessibleObject); Assert.Equal(accessibleRole, accessibleObject.Role); Assert.Equal(createControl, vertScrollBar.IsHandleCreated); }