Cubic bezier path segment.
Inheritance: XPathSegment
Exemplo n.º 1
0
        public void ToString_Should_Return_Path_Markup()
        {
            var target = new XCubicBezierSegment()
            {
                Point1 = new XPoint(),
                Point2 = new XPoint(),
                Point3 = new XPoint()
            };

            var actual = target.ToString();

            Assert.Equal("C0,0 0,0 0,0", actual);
        }
Exemplo n.º 2
0
        public void GetPoints_Should_Return_All_Segment_Points()
        {
            var segment = new XCubicBezierSegment()
            {
                Point1 = new XPoint(),
                Point2 = new XPoint(),
                Point3 = new XPoint()
            };

            var target = segment.GetPoints();

            Assert.Equal(3, target.Count());

            Assert.Contains(segment.Point1, target);
            Assert.Contains(segment.Point2, target);
            Assert.Contains(segment.Point3, target);
        }