public void VScrollBarLastPageButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(bool createControl, RightToLeft rightToLeft, int minimum, int maximum, int value) { using VScrollBar scrollBar = GetVScrollBar(createControl, rightToLeft, minimum, maximum, value); scrollBar.Enabled = false; ScrollBarLastPageButtonAccessibleObject accessibleObject = GetLastPageButton(scrollBar); Assert.False((bool)accessibleObject.GetPropertyValue(UiaCore.UIA.IsEnabledPropertyId)); Assert.Equal(createControl, scrollBar.IsHandleCreated); }