public void SplitterAccessibleObject_GetPropertyValue_Invoke_ReturnsExpected(int propertyID, object expected) { using var splitter = new Splitter { Name = "Splitter1", AccessibleName = "TestName" }; Assert.False(splitter.IsHandleCreated); var splitterAccessibleObject = new Splitter.SplitterAccessibleObject(splitter); object value = splitterAccessibleObject.GetPropertyValue((UIA)propertyID); Assert.Equal(expected, value); Assert.False(splitter.IsHandleCreated); }
public void SplitterAccessibleObject_GetPropertyValue_Invoke_ReturnsExpected(int propertyID, object expected) { using var splitter = new Splitter { Name = "Splitter1", AccessibleName = "TestName" }; Assert.False(splitter.IsHandleCreated); var splitterAccessibleObject = new Splitter.SplitterAccessibleObject(splitter); object value = splitterAccessibleObject.GetPropertyValue((UIA)propertyID); Assert.Equal(expected, value); // TODO: ControlAccessibleObject shouldn't force handle creation, tracked in https://github.com/dotnet/winforms/issues/3062 Assert.True(splitter.IsHandleCreated); }