コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }