| 1234567891011121314151617181920212223 |
- 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));
- }
- }
|