public void cellValidity_withinCircle() { ElliShape shape = new ElliShape(new Cell(0, 0), new OIGrid(10, 10)); Assert.IsTrue(shape.isCellValid(5, 5)); Assert.IsTrue(shape.isCellValid(5, 9)); Assert.IsTrue(shape.isCellValid(0, 5)); Assert.IsFalse(shape.isCellValid(5, 10)); Assert.IsFalse(shape.isCellValid(9, 9)); Assert.IsFalse(shape.isCellValid(10, 10)); }
public void cellValidity_withinEllipse() { ElliShape shape = new ElliShape(new Cell(0, 0), new OIGrid(3, 5)); Assert.IsTrue(shape.isCellValid(1, 1)); Assert.IsTrue(shape.isCellValid(1, 4)); }