1
0

WallConstruction.cs 967 B

123456789101112131415161718192021222324252627282930313233
  1. using Content.IntegrationTests.Tests.Interaction;
  2. namespace Content.IntegrationTests.Tests.Construction.Interaction;
  3. public sealed class WallConstruction : InteractionTest
  4. {
  5. public const string Girder = "Girder";
  6. public const string WallSolid = "WallSolid";
  7. public const string Wall = "Wall";
  8. [Test]
  9. public async Task ConstructWall()
  10. {
  11. await StartConstruction(Wall);
  12. await InteractUsing(Steel, 2);
  13. Assert.That(Hands.ActiveHandEntity, Is.Null);
  14. ClientAssertPrototype(Girder, Target);
  15. await InteractUsing(Steel, 2);
  16. Assert.That(Hands.ActiveHandEntity, Is.Null);
  17. AssertPrototype(WallSolid);
  18. }
  19. [Test]
  20. public async Task DeconstructWall()
  21. {
  22. await StartDeconstruction(WallSolid);
  23. await InteractUsing(Weld);
  24. AssertPrototype(Girder);
  25. await Interact(Wrench, Screw);
  26. AssertDeleted();
  27. await AssertEntityLookup((Steel, 4));
  28. }
  29. }