Example #1
0
        public void SplitterAccessibleObject_DefaultRole_ReturnsNone_IfControlIsNotCreated(bool createControl, AccessibleRole accessibleRole)
        {
            using var splitter = new Splitter();

            if (createControl)
            {
                splitter.CreateControl();
            }

            var splitterAccessibleObject = new Splitter.SplitterAccessibleObject(splitter);

            Assert.Equal(accessibleRole, splitterAccessibleObject.Role);
            Assert.Equal(createControl, splitter.IsHandleCreated);
        }