public void IsNotInside() { const int width = 43; const int height = 29; var b = new BoolMatrix(width, height); Assert.IsFalse(b.IsInside(new IntCoordinate(111, 133))); Assert.IsFalse(b.IsInside(new IntCoordinate(width, height))); Assert.IsFalse(b.IsInside(new IntCoordinate(-1, -1))); }
public void IsInside() { const int width = 43; const int height = 29; var b = new BoolMatrix(width, height); Assert.IsTrue(b.IsInside(new IntCoordinate(11, 13))); Assert.IsTrue(b.IsInside(new IntCoordinate(width - 1, height - 1))); Assert.IsTrue(b.IsInside(new IntCoordinate(0, 0))); }