* checkpoint * pt 2 * pt... i forgot * pt 4 * patch * More test fixes * optimization!!! * the REAL hand system * fix RetractableItemActionSystem.cs oversight * the review * test * remove test usage of body prototype * Update Content.IntegrationTests/Tests/Interaction/InteractionTest.cs Co-authored-by: Tayrtahn <tayrtahn@gmail.com> * hellcode * hellcode 2 * Minor cleanup * test * Chasing the last of the bugs * changes --------- Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
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";
|
|
public const string Wall = "Wall";
|
|
|
|
[Test]
|
|
public async Task ConstructWall()
|
|
{
|
|
await StartConstruction(Wall);
|
|
await InteractUsing(Steel, 2);
|
|
Assert.That(HandSys.GetActiveItem((SEntMan.GetEntity(Player), Hands)), Is.Null);
|
|
ClientAssertPrototype(Girder, Target);
|
|
await InteractUsing(Steel, 2);
|
|
Assert.That(HandSys.GetActiveItem((SEntMan.GetEntity(Player), Hands)), Is.Null);
|
|
AssertPrototype(WallSolid);
|
|
}
|
|
|
|
[Test]
|
|
public async Task DeconstructWall()
|
|
{
|
|
await StartDeconstruction(WallSolid);
|
|
await InteractUsing(Weld);
|
|
AssertPrototype(Girder);
|
|
await Interact(Wrench, Screw);
|
|
AssertDeleted();
|
|
await AssertEntityLookup((Steel, 4));
|
|
}
|
|
}
|