public void SetRow(int nrow, IList<int> values) { for (int k = 0; k < width; k++) this.cells[nrow, k] = values[k]; }
public void HasSolution2x2() { Pattern pattern = new Pattern(2, 2); pattern.SetRow(0, "1 2"); pattern.SetRow(1, "4 3"); Assert.IsFalse(pattern.HasSolution()); }