Fix interaction test not adding hands to entity

This commit is contained in:
Vera Aguilera Puerto
2021-05-22 14:02:04 +02:00
parent bf1fce006f
commit ed4f51b755

View File

@@ -68,7 +68,7 @@ namespace Content.IntegrationTests.Tests.Interaction.Click
var coordinates = new MapCoordinates(Vector2.Zero, mapId);
origin = entityManager.SpawnEntity(null, coordinates);
origin.EnsureComponent<HandsComponent>();
origin.EnsureComponent<HandsComponent>().AddHand("hand");
other = entityManager.SpawnEntity(null, coordinates);
containerEntity = entityManager.SpawnEntity(null, coordinates);
container = ContainerHelpers.EnsureContainer<Container>(containerEntity, "InteractionTestContainer");
@@ -126,7 +126,7 @@ namespace Content.IntegrationTests.Tests.Interaction.Click
Assert.That(interactUsing, Is.False);
interactionSystem.UserInteraction(origin, containerEntity.Transform.Coordinates, containerEntity.Uid);
Assert.That(interactUsing);
Assert.That(interactUsing, Is.True);
});
}
}