public void RRBUpdateGame_NewMatchWinnerUpdatesInRankings()
        {
            List <IPlayer> pList = new List <IPlayer>();

            for (int i = 0; i < 4; ++i)
            {
                Mock <IPlayer> moq = new Mock <IPlayer>();
                moq.Setup(p => p.Id).Returns(i + 1);
                pList.Add(moq.Object);
            }
            IBracket b = new RoundRobinBracket(pList);

            b.AddGame(1, 15, 10, PlayerSlot.Defender);

            int oldRankingsLeader = b.Rankings[0].Id;

            b.UpdateGame(1, 1, 10, 25, PlayerSlot.Challenger);
            Assert.AreNotEqual(oldRankingsLeader, b.Rankings[0].Id);
        }
        public void RRBUpdateGame_UpdatesPointsScore_InRankings()
        {
            List <IPlayer> pList = new List <IPlayer>();

            for (int i = 0; i < 4; ++i)
            {
                Mock <IPlayer> moq = new Mock <IPlayer>();
                moq.Setup(p => p.Id).Returns(i + 1);
                pList.Add(moq.Object);
            }
            IBracket b = new RoundRobinBracket(pList);

            b.AddGame(1, 15, 10, PlayerSlot.Defender);

            int oldPoints = b.Rankings[0].PointsScore;

            b.UpdateGame(1, 1, 25, 10, PlayerSlot.Defender);
            Assert.AreNotEqual(oldPoints, b.Rankings[0].PointsScore);
        }