Пример #1
0
        public void Fill()
        {
            FillFunc fillFunc = (row, col) => { return((row + 1) + (col + 1)); };

            skylineMatrix.Fill(fillFunc);

            di = new double[] { 2, 4, 6 };
            al = new double[] { 3, 4, 5 };
            au = new double[] { 3, 4, 5 };
            ia = new int[] { 1, 1, 2, 4 };


            SkylineMatrix skyline = new SkylineMatrix(di, ia, al, au);

            Assert.True(new HashSet <(double, int, int)>(skylineMatrix).SetEquals(skyline));
        }