public void DoClean_WithTwoMoveToUPCommand_ChangeThePositionToUP() { CleanTask sut = new CleanTask("N 2"); Point point = new Point(1, 1); point = sut.DoClean(point, _Logger.Object); Assert.AreEqual(3, point.Y); }
public void DoClean_WithOneMoveToDownCommand_ChangeThePositionToUP() { CleanTask sut = new CleanTask("S 1"); Point point = new Point(1, 2); point = sut.DoClean(point, _Logger.Object); Assert.AreEqual(1, point.Y); }
public void DoClean_WithOneMoveToEastCommand_ChangeThePositionToUP() { CleanTask sut = new CleanTask("E 1"); Point point = new Point(1, 1); point = sut.DoClean(point, _Logger.Object); Assert.AreEqual(2, point.X); }