Пример #1
0
        public void CreatePolyline_SetsLastSegmentAsFinish_ForPolylineDto()
        {
            // Arrange
            PolylineDto dto = CreatePolylineDto();
            var sut = new PathDtoToPath();

            // Act
            var actual = sut.CreatePolyline(dto).Segments.Last() as ITurnCircleArcSegment;

            // Assert
            Assert.NotNull(actual);
            Assert.AreEqual(Constants.CircleOrigin.Finish,
                            actual.CircleOrigin);
        }
Пример #2
0
        public void CreatePolyline_ReturnsAllSegements_ForPolylineDto()
        {
            // Arrange
            PolylineDto dto = CreatePolylineDto();
            var sut = new PathDtoToPath();

            // Act
            IPolyline actual = sut.CreatePolyline(dto);

            // Assert
            Assert.AreEqual(3,
                            actual.Segments.Count());
        }