public void RenderGameTopPlayersWhenPassedZeroPlayerShouldInvokeConsoleWriteLineNever()
        {
            var players = new List<IPlayer>();
            var renderer = new ConsoleRenderer();

            renderer.RenderGameTopPlayers(players);
        }
        public void RenderGameTopPlayersWhenPassedOnePlayerShouldInvokeConsoleWriteLineOnce()
        {
            var player = new Player();
            player.Name = "Player";
            player.Moves = 20;
            var players = new List<IPlayer>()
            {
                player
            };

            var mockConsole = new Mock<IConsoleWriter>();
            var writer = mockConsole.Object;
            var renderer = new ConsoleRenderer(writer);

            renderer.RenderGameTopPlayers(players);

            mockConsole.Verify(c => c.WriteLine(It.IsAny<string>(), It.IsAny<int>(), It.IsAny<string>(), It.IsAny<int>()), Times.Exactly(1));
        }
        public void RenderGameTopPlayersWhenPassedThreePlayerShouldInvokeConsoleWriteLineMoreThanOnce()
        {
            var player = new Player();
            player.Name = "Player";
            player.Moves = 20;
            var player1 = new Player();
            player1.Name = "Player1";
            player1.Moves = 10;
            var player2 = new Player();
            player2.Name = "Player2";
            player2.Moves = 30;

            var players = new List<IPlayer>()
            {
                player,
                player1,
                player2
            };

            var mockConsole = new Mock<IConsoleWriter>();
            var writer = mockConsole.Object;
            var renderer = new ConsoleRenderer(writer);

            renderer.RenderGameTopPlayers(players);

            mockConsole.Verify(c => c.WriteLine(It.IsAny<string>(), It.IsAny<int>(), It.IsAny<string>(), It.IsAny<int>()), Times.AtLeastOnce);
        }
        public void RenderGameTopPlayersWhenPassedNullShouldthrowException()
        {
            var renderer = new ConsoleRenderer();

            renderer.RenderGameTopPlayers(null);
        }