public void CreateNextSegment_InputDirectionWest_ReturnsHorizontalSegment()
        {
            //Arrange
            SegmentFactory factory = new SegmentFactory();
            string         command = "W 4";

            //Act
            Segment segment = factory.CreateNextSegment(command, 1, 1, 0);

            Assert.AreEqual(segment.Layout, Segment.Position.Horizontal);
        }
        public void CreateNextSegment_InputCommandIncludesTenSteps_ReturnsSegmentOfLengthTen()
        {
            //Arrange
            SegmentFactory factory = new SegmentFactory();
            string         command = "E 10";

            //Act
            Segment segment = factory.CreateNextSegment(command, 1, 1, 1);

            Assert.AreEqual(segment.Length, 10);
        }
        public void CreateNextSegment_InputDirectionNorth_ReturnsVerticalSegment()
        {
            //Arrange
            SegmentFactory factory = new SegmentFactory();
            string         command = "N 4";

            //Act
            Segment segment = factory.CreateNextSegment(command, 1, 1, 0);

            Assert.AreEqual(segment.Layout, Segment.Position.Vertical);
        }