Пример #1
0
        public virtual void RatingAutomationPeerTypeAndClass()
        {
            Rating acc = new Rating();
            RatingAutomationPeer peer = null;

            TestAsync(
                acc,
                () => peer = FrameworkElementAutomationPeer.CreatePeerForElement(acc) as RatingAutomationPeer,
                () =>
            {
                AutomationControlType controlType = peer.GetAutomationControlType();

                Assert.AreEqual(controlType, AutomationControlType.Slider, "Unexpected AutomationControlType!");
            });
        }