From ed4f51b7552bf9404c2af29f7cdc4b42bf4edb65 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Sat, 22 May 2021 14:02:04 +0200 Subject: [PATCH] Fix interaction test not adding hands to entity --- .../Tests/Interaction/Click/InteractionSystemTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.IntegrationTests/Tests/Interaction/Click/InteractionSystemTests.cs b/Content.IntegrationTests/Tests/Interaction/Click/InteractionSystemTests.cs index 3670dcb5f6..66d84eb846 100644 --- a/Content.IntegrationTests/Tests/Interaction/Click/InteractionSystemTests.cs +++ b/Content.IntegrationTests/Tests/Interaction/Click/InteractionSystemTests.cs @@ -68,7 +68,7 @@ namespace Content.IntegrationTests.Tests.Interaction.Click var coordinates = new MapCoordinates(Vector2.Zero, mapId); origin = entityManager.SpawnEntity(null, coordinates); - origin.EnsureComponent(); + origin.EnsureComponent().AddHand("hand"); other = entityManager.SpawnEntity(null, coordinates); containerEntity = entityManager.SpawnEntity(null, coordinates); container = ContainerHelpers.EnsureContainer(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); }); } }