Files
tbd-station-14/Content.IntegrationTests/Tests/Construction/Interaction/PlaceableDeconstruction.cs
2024-06-03 17:05:51 -04:00

24 lines
744 B
C#

using Content.IntegrationTests.Tests.Interaction;
using Content.Shared.Placeable;
namespace Content.IntegrationTests.Tests.Construction.Interaction;
public sealed class PlaceableDeconstruction : InteractionTest
{
/// <summary>
/// Checks that you can deconstruct placeable surfaces (i.e., placing a wrench on a table does not take priority).
/// </summary>
[Test]
public async Task DeconstructTable()
{
await StartDeconstruction("Table");
Assert.That(Comp<PlaceableSurfaceComponent>().IsPlaceable);
await InteractUsing(Wrench);
AssertPrototype("TableFrame");
await InteractUsing(Wrench);
AssertDeleted();
await AssertEntityLookup((Steel, 1), (Rod, 2));
}
}