Beispiel #1
0
        public void ColorRangeTests()
        {
            int[]        array          = { 2, 4, 4, 0, 0, 0, 5, 4, 0, 0 };
            List <Point> ranges         = ImageTools.ColorRanges(array, array.Length);
            List <Point> expectedRanges = new List <Point>()
            {
                new Point(0, 2),
                new Point(6, 7),
            };

            CollectionAssert.AreEqual(expectedRanges, ranges);
        }