public void TestPlayerConstructorIfReturnValidInitialPositionY()
 {
     var player = new Player();
     var actual = player.Position.X;
     var expected = GlobalConstants.StartPlayerPositionY;
     Assert.AreEqual(expected, actual);
 }
 public void TestPlayerConstructorIfReturnValidMovesState()
 {
     var player = new Player();
     var actual = player.MoveCount;
     var expected = 0;
     Assert.AreEqual(expected, actual);
 }
 public void TestPlayerConstructorIfReturnsValidNameState()
 {
     var player = new Player();
     var actual = player.Name;
     var expected = "Guest";
     Assert.AreEqual(expected, actual);
 }
 public void TestPlayerConstructorIfInputIsProvidedReturnsValidNameState()
 {
     var player = new Player("Pesho");
     var actual = player.Name;
     var expected = "Pesho";
     Assert.AreEqual(expected, actual);
 }
        public void ShouldAddPlayerWithNameToList()
        {
            this.scoreboard = new Scoreboard();
            this.player = new Player("Stamat");
            this.scoreboard.AddPlayer(this.player);

            var expected = this.player.Name;
            var actual = this.scoreboard.Players.FirstOrDefault().Name;

            Assert.AreEqual(expected, actual);
        }
        public void ShouldAddPlayerToList()
        {
            this.scoreboard = new Scoreboard();
            this.player = new Player();
            this.scoreboard.AddPlayer(this.player);

            var actual = this.scoreboard.Players.Count;
            var expected = 1;

            Assert.AreEqual(expected, actual);
        }
        public void GenerateGridMethodShouldBeReturnValidMatrixLength()
        {
            var grid = new Grid(7, 7);
            var player = new Player();
            var initializer = new Initializer();

            var actual = initializer.GenerateGrid(player, grid);
            var expextetHorizontalLength = 7;
            var expextetVerticalLength = 7;

            Assert.AreEqual(expextetHorizontalLength, actual.Field.GetLength(0));
            Assert.AreEqual(expextetVerticalLength, actual.Field.GetLength(1));
        }
        public void TestSecondConstruncturIfReturnValidNameAndPositionValue()
        {
            var position = new Position(3, 4);
            var player = new Player("Gosho", position);

            var actualName = player.Name;
            var actualPositionX = player.Position.X;
            var actualPositionY = player.Position.Y;

            var expectedName = "Gosho";
            var expectedPositionX = 3;
            var expectedPositionY = 4;

            Assert.AreEqual(expectedName, actualName);
            Assert.AreEqual(expectedPositionX, actualPositionX);
            Assert.AreEqual(actualPositionY, expectedPositionY);
        }