public void CheckIsAnyRoverInThisPoint()
        {
            Plateau plateau = new Plateau();

            plateau.SetPlateau(1, 0, 0, 5, 5);

            Rover alphaRover = new Rover();

            alphaRover.SetRover(1, 1, 2, 'E');

            Rover betaRover = new Rover();

            betaRover.SetRover(2, 1, 2, 'N');

            Rover gamaRover = new Rover();

            gamaRover.SetRover(2, 3, 4, 'N');


            plateau.AddRoverIntoPlateau(alphaRover);
            plateau.AddRoverIntoPlateau(betaRover);
            plateau.AddRoverIntoPlateau(gamaRover);

            //Assert.IsFalse(plateau.IsAnyRoverInThisPoint(new int[]{ alphaRover.XPoint, alphaRover.YPoint }, plateau.RoverCollection));
            Assert.IsTrue(plateau.IsAnyRoverInThisPoint(alphaRover, plateau.RoverCollection));
            Assert.IsFalse(plateau.IsAnyRoverInThisPoint(gamaRover, plateau.RoverCollection));
        }
        public void CheckIsAnyRoverInThisPoint()
        {
            Plateau plateau = new Plateau();

            plateau.SetBoundaryPoint(1, 0, 0, 5, 5);

            Rover alphaRover = new Rover();

            alphaRover.SetPosition(1, 1, 2, 'E');

            Rover betaRover = new Rover();

            betaRover.SetPosition(2, 1, 2, 'N');

            Rover gamaRover = new Rover();

            gamaRover.SetPosition(2, 3, 4, 'N');


            plateau.AddRoverIntoPlateau(alphaRover);
            plateau.AddRoverIntoPlateau(betaRover);
            plateau.AddRoverIntoPlateau(gamaRover);

            // No rover in this point
            Assert.IsTrue(plateau.IsAnyRoverInThisPoint(alphaRover, plateau.RoverCollection));
            //another rover in this point
            Assert.IsFalse(plateau.IsAnyRoverInThisPoint(gamaRover, plateau.RoverCollection));
        }
        public void CheckIsAnyRoverInThisPointForAddNewRover()
        {
            Plateau plateau = new Plateau();

            plateau.SetBoundaryPoint(1, 0, 0, 5, 5);

            Rover alphaRover = new Rover();

            alphaRover.SetPosition(1, 1, 2, 'E');


            Rover betaRover = new Rover();

            betaRover.SetPosition(2, 1, 2, 'N');

            Rover gamaRover = new Rover();

            gamaRover.SetPosition(2, 3, 4, 'N');


            plateau.AddRoverIntoPlateau(alphaRover);

            Assert.IsTrue(plateau.IsAnyRoverInThisPoint(new int[] { betaRover.XPoint, betaRover.YPoint }, plateau.RoverCollection));
            Assert.IsFalse(plateau.IsAnyRoverInThisPoint(new int[] { gamaRover.XPoint, gamaRover.YPoint }, plateau.RoverCollection));
        }