Пример #1
0
        public void Place_XYvalueInRange_ReturntTrue()
        {
            var commandFunctions = new CommandFunctions();
            var x         = 3;
            var y         = 0;
            var direction = EnumFaces.NORTH;

            var result = commandFunctions.Place(x, y, direction);

            Assert.IsTrue(result);
        }
Пример #2
0
        public void Place_XYvaluesOutOfRange_ReturnFalse()
        {
            var commandFunctions = new CommandFunctions();
            var x         = 5;
            var y         = 0;
            var direction = EnumFaces.NORTH;

            var result = commandFunctions.Place(x, y, direction);

            Assert.IsFalse(result);
        }