Exemple #1
0
        public void TestVisual()
        {
            AddStep("Unread Selected", () =>
            {
                if (validItem)
                {
                    channelList.GetItem(selected.Value).Unread.Value = true;
                }
            });

            AddStep("Read Selected", () =>
            {
                if (validItem)
                {
                    channelList.GetItem(selected.Value).Unread.Value = false;
                }
            });

            AddStep("Add Mention Selected", () =>
            {
                if (validItem)
                {
                    channelList.GetItem(selected.Value).Mentions.Value++;
                }
            });

            AddStep("Add 98 Mentions Selected", () =>
            {
                if (validItem)
                {
                    channelList.GetItem(selected.Value).Mentions.Value += 98;
                }
            });

            AddStep("Clear Mentions Selected", () =>
            {
                if (validItem)
                {
                    channelList.GetItem(selected.Value).Mentions.Value = 0;
                }
            });
        }