Files

26 lines
684 B
C#
Raw Permalink Normal View History

2023-04-15 07:41:25 +12:00
using Content.IntegrationTests.Tests.Interaction;
2023-09-05 00:07:01 +10:00
using Content.Shared.Tools.Components;
2023-04-15 07:41:25 +12:00
namespace Content.IntegrationTests.Tests.Weldable;
/// <summary>
/// Simple test to check that using a welder on a locker will weld it shut.
/// </summary>
public sealed class WeldableTests : InteractionTest
{
public const string Locker = "LockerFreezer";
[Test]
public async Task WeldLocker()
{
await SpawnTarget(Locker);
var comp = Comp<WeldableComponent>();
2023-09-05 00:07:01 +10:00
Assert.That(comp.IsWelded, Is.False);
2023-04-15 07:41:25 +12:00
2024-06-04 09:05:51 +12:00
await InteractUsing(Weld);
2023-04-15 07:41:25 +12:00
Assert.That(comp.IsWelded, Is.True);
AssertPrototype(Locker); // Prototype did not change.
}
}