Example #1
0
        public void NorthStep_isCorrect()
        {
            Coord answer = OfficeFloor.Movetowards(Moveto.N);

            Assert.AreEqual(0, answer.XPos);
            Assert.AreEqual(1, answer.YPos);
        }
Example #2
0
        public void WestStep_isCorrect()
        {
            Coord answer = OfficeFloor.Movetowards(Moveto.W);

            Assert.AreEqual(-1, answer.XPos);
            Assert.AreEqual(0, answer.YPos);
        }