Files

35 lines
1.0 KiB
C#
Raw Permalink Normal View History

2023-04-15 07:41:25 +12:00
using Content.IntegrationTests.Tests.Interaction;
namespace Content.IntegrationTests.Tests.Construction.Interaction;
public sealed class WallConstruction : InteractionTest
{
public const string Girder = "Girder";
public const string WallSolid = "WallSolid";
2023-05-23 18:43:53 +03:00
public const string Wall = "WallSolid";
2023-04-15 07:41:25 +12:00
[Test]
public async Task ConstructWall()
{
await StartConstruction(Wall);
await Interact(Steel, 2);
Assert.That(Hands.ActiveHandEntity, Is.Null);
ClientAssertPrototype(Girder, ClientTarget);
Target = CTestSystem.Ghosts[ClientTarget!.Value.GetHashCode()];
2023-04-15 07:41:25 +12:00
await Interact(Steel, 2);
Assert.That(Hands.ActiveHandEntity, Is.Null);
2023-04-15 07:41:25 +12:00
AssertPrototype(WallSolid);
}
[Test]
public async Task DeconstructWall()
{
await StartDeconstruction(WallSolid);
await Interact(Weld);
AssertPrototype(Girder);
await Interact(Wrench, Screw);
AssertDeleted();
await AssertEntityLookup((Steel, 4));
}
}