public void ZoneTest() { DiscreteCoordinates coords = new DiscreteCoordinates(1, 2); Zone z1 = new RectangleZone(4, 5, 5, 6); Zone z2 = new RectangleZone(-1, 7, -3, 8); Assert.IsFalse(z1.IsInZone(coords)); Assert.IsTrue(z2.IsInZone(coords)); }
public void IsNotInZoneTest() { RectangleZone zone = new RectangleZone(1, 4, 1, 4); Assert.IsFalse(zone.IsInZone(10, 12)); }
public void IsInZoneTest() { RectangleZone zone = new RectangleZone(1, 4, 1, 4); Assert.IsTrue(zone.IsInZone(3, 2)); }