WeldableTests.cs 684 B

12345678910111213141516171819202122232425
  1. using Content.IntegrationTests.Tests.Interaction;
  2. using Content.Shared.Tools.Components;
  3. namespace Content.IntegrationTests.Tests.Weldable;
  4. /// <summary>
  5. /// Simple test to check that using a welder on a locker will weld it shut.
  6. /// </summary>
  7. public sealed class WeldableTests : InteractionTest
  8. {
  9. public const string Locker = "LockerFreezer";
  10. [Test]
  11. public async Task WeldLocker()
  12. {
  13. await SpawnTarget(Locker);
  14. var comp = Comp<WeldableComponent>();
  15. Assert.That(comp.IsWelded, Is.False);
  16. await InteractUsing(Weld);
  17. Assert.That(comp.IsWelded, Is.True);
  18. AssertPrototype(Locker); // Prototype did not change.
  19. }
  20. }