Beispiel #1
0
        public void TestNotificationCounter()
        {
            ToolbarNotificationButton notificationButton = null;

            AddStep("retrieve notification button", () => notificationButton = toolbar.ChildrenOfType <ToolbarNotificationButton>().Single());

            setNotifications(1);
            setNotifications(2);
            setNotifications(3);
            setNotifications(0);
            setNotifications(144);

            void setNotifications(int count)
            => AddStep($"set notification count to {count}",
                       () => notificationButton.NotificationCount.Value = count);
        }