public void Locate_ReturnsNull() { var mid = ZoneData.MapZones.OfType <SphericalZone>().Single(z => z.Region == RegionKey.Neutral && z.Key == ZoneKey.Mid); var position = mid.Center + new Vector3(mid.Radius + 0.1f, 0f, 0f); var result = ZoneUtil.Locate(position); Assert.IsNull(result); }
public void Locate_ReturnsZone() { var mid = ZoneData.MapZones.Single(z => z.Region == RegionKey.Neutral && z.Key == ZoneKey.Mid); var position = mid.Center; var result = ZoneUtil.Locate(position); Assert.AreEqual(ZoneKey.Mid, result.Key); }