public void SouthCommand_GetNewPoint_ShouldReturn_Null_ForInvalidPosition() { var command = new SouthCommand() { Limit = 10 }; var data = command.GetNewPoint(10, 0); Assert.Null(data); }
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); }