Esempio n. 1
0
        public void TestOutOfBoundsPosition_Negative()
        {
            RoverController rc = new RoverController
            {
                NorthEastBound = new Tuple <int, int>(3, 3)
            };

            Assert.IsFalse(rc.IsInBounds(new Tuple <int, int>(-1, 3)));
        }
Esempio n. 2
0
        public void TestInBoundsPosition()
        {
            RoverController rc = new RoverController
            {
                NorthEastBound = new Tuple <int, int>(3, 3)
            };

            Assert.IsTrue(rc.IsInBounds(new Tuple <int, int>(1, 3)));
        }