PlaceableDeconstruction.cs 744 B

1234567891011121314151617181920212223
  1. using Content.IntegrationTests.Tests.Interaction;
  2. using Content.Shared.Placeable;
  3. namespace Content.IntegrationTests.Tests.Construction.Interaction;
  4. public sealed class PlaceableDeconstruction : InteractionTest
  5. {
  6. /// <summary>
  7. /// Checks that you can deconstruct placeable surfaces (i.e., placing a wrench on a table does not take priority).
  8. /// </summary>
  9. [Test]
  10. public async Task DeconstructTable()
  11. {
  12. await StartDeconstruction("Table");
  13. Assert.That(Comp<PlaceableSurfaceComponent>().IsPlaceable);
  14. await InteractUsing(Wrench);
  15. AssertPrototype("TableFrame");
  16. await InteractUsing(Wrench);
  17. AssertDeleted();
  18. await AssertEntityLookup((Steel, 1), (Rod, 2));
  19. }
  20. }