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); }
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); }
public void Points_Not_Null() { var target = new XPolyCubicBezierSegment(); Assert.NotNull(target.Points); }