Example #1
0
        public void PlaySnap_PlayGame_CheckForResult_CheckForWinnerOrDraw()
        {
            PlaySnap playSnap = new PlaySnap();

            playSnap.PlayGame();
            Assert.IsTrue(playSnap.winnerChosen > -1);
        }
Example #2
0
        public void PlaySnap_InitializeGame_CountPlayers_EqualsTwo()
        {
            PlaySnap           playSnap = new PlaySnap();
            List <PlayingCard> ShuffledCardDeck;
            List <Player>      Players;

            playSnap.InitializeGame(out ShuffledCardDeck, out Players);

            Assert.IsTrue(Players.Count.Equals(2));
        }
Example #3
0
 public void PlaySnap_PlayGame_VerifyNoExceptions_NoExceptions()
 {
     try
     {
         PlaySnap playSnap = new PlaySnap();
         playSnap.PlayGame();
     }
     catch (System.Exception ex)
     {
         Assert.Fail("Expected no exception, but got: " + ex.Message);
     }
 }