Exemple #1
0
        public void SouthCommand_GetNewPoint_ShouldReturn_Null_ForInvalidPosition()
        {
            var command = new SouthCommand()
            {
                Limit = 10
            };

            var data = command.GetNewPoint(10, 0);

            Assert.Null(data);
        }
Exemple #2
0
        public void SouthCommand_GetNewPoint_ShouldReturn_CorrectData_ForValidPosition()
        {
            var command = new SouthCommand()
            {
                Limit = 10
            };

            var data = command.GetNewPoint(9, 5);

            Assert.NotNull(data);
            Assert.Equal(9, data.X);
            Assert.Equal(4, data.Y);
        }