Exemple #1
0
        public void CantAddThreePlayers()
        {
            var sut = new Gameplay();

            sut.AddPlayer("Anders");
            sut.AddPlayer("Edith");
            sut.AddPlayer("Alice");
        }
Exemple #2
0
        public void CanAddPlayers()
        {
            var sut = new Gameplay();

            sut.AddPlayer("Anders");
            sut.AddPlayer("Edith");

            Assert.AreEqual(sut.PlayerOne.NickName, "Anders");
            Assert.AreEqual(sut.PlayerTwo.NickName, "Edith");
        }
Exemple #3
0
        public void CanDoFirstDraw()
        {
            var sut = new Gameplay();

            sut.AddPlayer("Anders");
            sut.AddPlayer("Edith");

            Assert.IsTrue(sut.LeftStack.Cards.Count == 0);
            Assert.IsTrue(sut.RightStack.Cards.Count == 0);

            sut.Draw();

            Assert.IsTrue(sut.LeftStack.Cards.Count == 1);
            Assert.IsTrue(sut.RightStack.Cards.Count == 1);
        }