Poly cubic bezier path segment.
Inheritance: XPathPolySegment
コード例 #1
0
        public void ToString_Should_Return_Path_Markup()
        {
            var target = new XPolyCubicBezierSegment();
            target.Points = target.Points.Add(new XPoint());
            target.Points = target.Points.Add(new XPoint());
            target.Points = target.Points.Add(new XPoint());
            target.Points = target.Points.Add(new XPoint());
            target.Points = target.Points.Add(new XPoint());

            var actual = target.ToString();

            Assert.Equal("C0,0 0,0 0,0 0,0 0,0", actual);
        }
コード例 #2
0
        public void GetPoints_Should_Return_All_Segment_Points()
        {
            var segment = new XPolyCubicBezierSegment();
            segment.Points = segment.Points.Add(new XPoint());
            segment.Points = segment.Points.Add(new XPoint());
            segment.Points = segment.Points.Add(new XPoint());
            segment.Points = segment.Points.Add(new XPoint());
            segment.Points = segment.Points.Add(new XPoint());

            var target = segment.GetPoints();

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

            Assert.Equal(segment.Points, target);
        }
コード例 #3
0
 public void Points_Not_Null()
 {
     var target = new XPolyCubicBezierSegment();
     Assert.NotNull(target.Points);
 }