Ejemplo n.º 1
0
        public void Setup()
        {
            roomManagerInstance = new RoomManager();
            room    = new RoomHub();
            player1 = new Player
            {
                ConnectionId = Guid.NewGuid().ToString(),
                PlayerInGame = new PlayerInGame()
                {
                    Name        = Guid.NewGuid().ToString(),
                    Side        = PlayerSide.Blue,
                    CardsInHand = new List <ICard>(),
                    Deck        = CardHelpers.GetAllTierOneCards()
                }
            };
            player2 = new Player
            {
                ConnectionId = Guid.NewGuid().ToString(),
                PlayerInGame = new PlayerInGame()
                {
                    Name        = Guid.NewGuid().ToString(),
                    Side        = PlayerSide.Red,
                    CardsInHand = new List <ICard>(),
                    Deck        = CardHelpers.GetAllTierOneCards()
                }
            };
            room.Player1 = player1;
            room.Player2 = player2;

            boardManager = BoardManagerObject.CreateBoardManager(player1.PlayerInGame, player2.PlayerInGame);

            room = new RoomHub
            {
                BoardManager = boardManager,
                Player1      = player1,
                Player2      = player2
            };
        }
        public void ShouldTierOneCardCountBeMoreThanZero()
        {
            var tierOneCards = CardHelpers.GetAllTierOneCards();

            Assert.That(tierOneCards.Count() > 0);
        }