Пример #1
0
        public void copyTest()
        {
            CTSPPointList pointlist = CTSPPointList.getInstance();

            pointlist.addPoint(TEST_POINT_1);
            pointlist.addPoint(TEST_POINT_2);
            pointlist.addPoint(TEST_POINT_3);
            Assert.IsTrue(pointlist.length() == 3, "Fehler beim einfügen der Testdaten");

            CTSPPointList copy = pointlist.copy();

            Assert.AreNotSame(pointlist, copy);
            Assert.IsTrue(pointlist.length() == copy.length());
        }