コード例 #1
0
        public void IsNull_DirectionStrategy(string command)
        {
            IDirectionContextStrategy directionContextStrategy = new DirectionContextStrategy();

            directionContextStrategy.SetCommand(command);
            IDirectionStrategy directionStrategy = directionContextStrategy.GetDirection();

            Assert.Null(directionStrategy);
        }
コード例 #2
0
        public void IsThrowArgumentOutOfRangeException_Coordinate_X_and_Y_Minus(string command)
        {
            IDirectionContextStrategy directionContextStrategy = new DirectionContextStrategy();

            Assert.Throws <ArgumentNullException>(() => directionContextStrategy.SetCommand(command));
        }