示例#1
0
        public void pxCheckCorners()
        {
            var vdSearch = new VectorDominationSearch();
            var lSearch  = new LinearSearch();

            vdSearch.Run(cornerPointsOutside, window);
            lSearch.Run(cornerPointsOutside, window);

            Assert.AreEqual(lSearch.searchedPoins.Count, vdSearch.searchedPoins.Count);

            vdSearch.Run(cornerPointsWithin, window);
            lSearch.Run(cornerPointsWithin, window);

            Assert.AreEqual(lSearch.searchedPoins.Count, vdSearch.searchedPoins.Count);
        }
示例#2
0
        public void CheckEqualPoints()
        {
            var vdSearch = new VectorDominationSearch();
            var lSearch  = new LinearSearch();

            vdSearch.Run(equalPoints, window);
            lSearch.Run(equalPoints, window);

            Assert.AreEqual(lSearch.searchedPoins.Count, vdSearch.searchedPoins.Count);
        }
示例#3
0
        public void CheckBorderWithCorners()
        {
            var vdSearch = new VectorDominationSearch();
            var lSearch  = new LinearSearch();

            vdSearch.Run(borderCornerPoints, window);
            lSearch.Run(borderCornerPoints, window);

            Assert.AreEqual(lSearch.searchedPoins.Count, vdSearch.searchedPoins.Count);
        }
示例#4
0
        public void pxWithinAndOutside()
        {
            var vdSearch = new VectorDominationSearch();
            var lSearch  = new LinearSearch();

            vdSearch.Run(points3, window);
            lSearch.Run(points3, window);

            Assert.AreEqual(lSearch.searchedPoins.Count, vdSearch.searchedPoins.Count);
        }
示例#5
0
        public void CheckAllPoints()
        {
            var vdSearch   = new VectorDominationSearch();
            var lSearch    = new LinearSearch();
            var wholeArray = ConcatArrays <Point>(
                points1,
                points2,
                points3,
                cornerPointsOutside,
                borderPoints,
                borderCornerPoints,
                equalPoints
                );
            List <Point> copiesArray = new List <Point>();

            Point[] cloneArray = new Point[wholeArray.Length];
            wholeArray.CopyTo(cloneArray, 0);
            vdSearch.Run(wholeArray, window);
            lSearch.Run(wholeArray, window);

            Assert.AreEqual(lSearch.searchedPoins.Count, vdSearch.searchedPoins.Count);
        }