public void CubicToWithHandleStart_Test() { PDFGraphicsPath target = new PDFGraphicsPath(); Assert.IsTrue(target.Paths.Count == 1); Assert.IsTrue(target.HasCurrentPath); Assert.AreEqual(target.Cursor, PDFPoint.Empty); PDFPoint end = new PDFPoint(100, 100); PDFPoint handleStart = new PDFPoint(0, 50); PDFPoint handleEnd = new PDFPoint(50, 100); target.CubicCurveToWithHandleStart(end, handleStart); Assert.AreEqual(target.Cursor, end); Assert.AreEqual(target.Paths[0].Operations.Count, 1); Assert.IsInstanceOfType(target.Paths[0].Operations[0], typeof(PathBezierCurveData)); PathBezierCurveData data = (PathBezierCurveData)target.Paths[0].Operations[0]; Assert.AreEqual(data.Points.Length, 3); Assert.IsTrue(data.HasStartHandle); Assert.IsFalse(data.HasEndHandle); Assert.AreEqual(data.EndPoint, end); Assert.AreEqual(data.StartHandle, handleStart); Assert.AreEqual(data.EndHandle, PDFPoint.Empty); }