Ejemplo n.º 1
0
        public void ShouldCleanOnlyTheStart()
        {
            var movements = new List <Tuple <string, int> >();

            _myRobotCleaner = new RobotIA(movements.Count, 24, 12, movements);
            _myRobotCleaner.Start();

            Assert.Equal(1, _myRobotCleaner.GetCleanedSpotsQuantity());
        }
Ejemplo n.º 2
0
        public void ShouldClean(int numberofcommands, int coordinatex, int coordinatey, List <Tuple <string, int> > movements, int outputexpected)
        {
            _myRobotCleaner = new RobotIA(numberofcommands, coordinatex, coordinatey, movements);

            //Act
            _myRobotCleaner.Start();


            //Assert
            Assert.Equal(_myRobotCleaner.GetCleanedSpotsQuantity(), outputexpected);
        }