Exemplo n.º 1
0
        internal void GetByNameEmptyTest()
        {
            var game = GameTestUtils.CreateMockedGame(2);

            var actual = game.Object.GetByName("player3");

            actual.Should().BeNull();
        }
Exemplo n.º 2
0
        internal void GetByNameTest()
        {
            var game = GameTestUtils.CreateMockedGame(2);

            var actual = game.Object.GetByName("player1");

            actual.Should().Be(game.Object.Players[1]);
        }
Exemplo n.º 3
0
        internal void ShufflePlayerCards()
        {
            var game    = GameTestUtils.CreateMockedGame(2);
            var service = new WerefoxService(";;")
            {
                CurrentGame = game.Object,
            };

            service.ShufflePlayerCards();

            game.Object.GetAliveWerefoxes().Count().Should().Be(1);
        }