public void ToString_Should_Return_Path_Markup() { var target = new XQuadraticBezierSegment() { Point1 = new XPoint(), Point2 = new XPoint() }; var actual = target.ToString(); Assert.Equal("Q0,0 0,0", actual); }
public void GetPoints_Should_Return_All_Segment_Points() { var segment = new XQuadraticBezierSegment() { Point1 = new XPoint(), Point2 = new XPoint() }; var target = segment.GetPoints(); Assert.Equal(2, target.Count()); Assert.Contains(segment.Point1, target); Assert.Contains(segment.Point2, target); }