public void RenderStartGameMessageShouldNotThrow()
        {
            IBasicUIRenderer renderer = new ConsoleUIRenderer();
            var highscore = new Highscore();
            var basicIOProvider = new BasicIOProvider<BasicUIRenderer>(renderer, highscore);

            basicIOProvider.RenderStartGameMessage();
        }
 public void AddPlayerTest()
 {
     var highScore = new Highscore();
     var playersCount = 5;
     highScore.LoadData();
     Assert.AreEqual(playersCount, highScore.Players.Count);
     bool playersAreOrdered = highScore.Players[0].Moves >= highScore.Players[1].Moves;
     Assert.IsTrue(playersAreOrdered);
 }
        public void ProceedCommandShouldThrow()
        {
            IBasicUIRenderer renderer = new ConsoleUIRenderer();
            var highscore = new Highscore();
            var basicIOProvider = new BasicIOProvider<BasicUIRenderer>(renderer, highscore);

            var matrix = new Matrix(5, 5);
            var moves = new Mover();
            basicIOProvider.ProceedCommand("ab", matrix, moves);
        }
        public void PlayersAreOrdered()
        {
            var highScore = new Highscore();
            var player = new Game.Models.Player.Player("dsad", 3);
            highScore.AddPlayer(player);
            bool playersAreOrdered = true;
            for (int i = 0; i < highScore.Players.Count - 1; i++)
            {
                if (highScore.Players[i].Moves < highScore.Players[i + 1].Moves)
                {
                    playersAreOrdered = false;
                }
            }

            Assert.IsTrue(playersAreOrdered);
        }
 public void ConsoleShouldPrintHighScores()
 {
     var testUIrenderer = new Game.UIRenderer.Renderers.ConsoleUIRenderer();
     var testingHighScore = new Highscore();
     testUIrenderer.PrintHighscore(testingHighScore);
 }