Esempio n. 1
0
        public void FastDuplicateTest()
        {
            var polyCrv = new PolyCurve(new Line(0, 0, 10, 10));

            polyCrv.AddArc(new Vector(10, 0));
            polyCrv.Add(new PolyLine(new Vector(10, 0), new Vector(5, 0), new Vector(5, -5)));

            for (int i = 0; i < 1000; i++)
            {
                var polyCrv2 = polyCrv.FastDuplicate();
                Assert.AreEqual(polyCrv.Length, polyCrv2.Length);
            }
        }