Exemplo n.º 1
0
        public void AllowsCyclingThroughSelectableWidgets()
        {
            System.Add(Button);
            System.Add(Button2);

            Assert.AreEqual(Button, System.CurrentSelectable);
            // Cycle 30 times
            for (int i = 0; i < 30; i++)
            {
                System.NextSelectable();
                Assert.AreEqual(Button2, System.CurrentSelectable);
                System.NextSelectable();
                Assert.AreEqual(Button, System.CurrentSelectable);
            }
        }