From b83159e8d414a991428f699fbaf3fd3233a70587 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Tue, 1 Dec 2020 01:23:08 +1100 Subject: [PATCH] Fix grid-tile lookup test (#2649) Co-authored-by: Metal Gear Sloth --- Content.IntegrationTests/Tests/GridTileLookupTest.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Content.IntegrationTests/Tests/GridTileLookupTest.cs b/Content.IntegrationTests/Tests/GridTileLookupTest.cs index 1f4988bc99..ea304fdc94 100644 --- a/Content.IntegrationTests/Tests/GridTileLookupTest.cs +++ b/Content.IntegrationTests/Tests/GridTileLookupTest.cs @@ -54,11 +54,10 @@ namespace Content.IntegrationTests.Tests entityManager.SpawnEntity("Dummy", new EntityCoordinates(gridOne.GridEntityId, Vector2.One)); var entityTiles = tileLookup.GetIndices(entityOne); - Assert.That(entityTiles.Count, Is.EqualTo(2)); + Assert.That(entityTiles.Count, Is.EqualTo(4)); entities = tileLookup.GetEntitiesIntersecting(entityOne).ToList(); - // Includes station entity - Assert.That(entities.Count, Is.EqualTo(3)); + Assert.That(entities.Count, Is.EqualTo(5)); // Both dummies should be in each corner of the 0,0 tile but only one dummy intersects -1,-1 entities = tileLookup.GetEntitiesIntersecting(gridOne.Index, new Vector2i(-1, -1)).ToList();