public void Range() { var x = new CellLoc(1, 1); Assert.AreEqual("([1,1],[1,2],[1,3],[1,4])", x.ColRange(4).Print()); Assert.AreEqual("([1,1],[2,1],[3,1])", x.RowRange(3).Print()); }
public void NegativeRange() { var x = new CellLoc(5, 5); Assert.AreEqual("([5,5],[5,4],[5,3],[5,2],[5,1])", x.ColRange(-5).Print()); Assert.AreEqual("([5,5],[4,5],[3,5],[2,5],[1,5])", x.RowRange(-5).Print()); }