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

            for (int i = 1; i <= 12; ++i)
            {
                Mock <IPlayer> moq = new Mock <IPlayer>();
                moq.Setup(p => p.Id).Returns(i);
                pList.Add(moq.Object);
            }
            IBracket b = new SingleElimBracket(pList.Where(p => p.Id <= 8).ToList());

            b.SetNewPlayerlist(pList.Where(p => p.Id > 8).ToList());
            Assert.AreEqual(4, b.Players.Count);
        }
        public void SetNewPlayerlist_ThrowsNullReferenceWithNullParam()
        {
            List <IPlayer> pList = new List <IPlayer>();

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

            b.SetNewPlayerlist(null);
            Assert.AreEqual(1, 2);
        }