Пример #1
0
        public void TestGetUnupdatedScrummers()
        {
            ChannelState chnl_1 = CreateChannelState();
            ChannelState chnl_2 = CreateChannelState();
            ChannelState chnl_3 = CreateChannelState();


            ulong userSeed = new ulong();

            userSeed += 437354;

            chnl_1.ScrumEnabled = true;
            chnl_2.ScrumEnabled = true;
            chnl_3.ScrumEnabled = true;

            chnl_1.ScrumerIds.Add(userSeed);
            chnl_1.ScrumerIds.Add(userSeed * 2);
            chnl_1.ScrumerIds.Add(userSeed * 4);
            chnl_1.ScrumerIds.Add(userSeed * 5);
            chnl_1.UpdatedScrumerIds.Add(userSeed);

            chnl_2.ScrumerIds.Add(userSeed);
            chnl_2.UpdatedScrumerIds.Add(userSeed);

            chnl_3.ScrumerIds.Add(userSeed * 2);
            chnl_3.ScrumerIds.Add(userSeed);

            Assert.AreEqual(chnl_3.GetUnupdatedScrumers().Count, 2);
            Assert.AreEqual(chnl_2.GetUnupdatedScrumers().Count, 0);
            Assert.AreEqual(chnl_1.GetUnupdatedScrumers().Count, 3);
        }