public void Fill() { FillFunc fillFunc = (row, col) => { return((row + 1) + (col + 1)); }; coordinationalMatrix.Fill(fillFunc); size = 3; values = new double[] { 2, 3, 4, 3, 4, 4, 6 }; columns = new int[] { 0, 1, 2, 0, 1, 0, 2 }; rows = new int[] { 0, 0, 0, 1, 1, 2, 2 }; CoordinationalMatrix coordinat = new CoordinationalMatrix(rows, columns, values, size); Assert.True(new HashSet <(double, int, int)>(coordinationalMatrix).SetEquals(coordinat)); }