public void IsNull_DirectionStrategy(string command) { IDirectionContextStrategy directionContextStrategy = new DirectionContextStrategy(); directionContextStrategy.SetCommand(command); IDirectionStrategy directionStrategy = directionContextStrategy.GetDirection(); Assert.Null(directionStrategy); }
public void IsThrowArgumentOutOfRangeException_Coordinate_X_and_Y_Minus(string command) { IDirectionContextStrategy directionContextStrategy = new DirectionContextStrategy(); Assert.Throws <ArgumentNullException>(() => directionContextStrategy.SetCommand(command)); }