fish-station/Content.IntegrationTests/Tests/Construction/Interaction/WindowConstruction.cs
TemporalOroboros ba91023a85
Fix content.integration tests warnings (#17817)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2023-07-06 14:54:25 +10:00

50 lines
1.2 KiB
C#

using Content.IntegrationTests.Tests.Interaction;
namespace Content.IntegrationTests.Tests.Construction.Interaction;
public sealed class WindowConstruction : InteractionTest
{
private const string Window = "Window";
private const string RWindow = "ReinforcedWindow";
[Test]
public async Task ConstructWindow()
{
await StartConstruction(Window);
await Interact(Glass, 5);
AssertPrototype(Window);
}
[Test]
public async Task DeconstructWindow()
{
await StartDeconstruction(Window);
await Interact(Screw, Wrench);
AssertDeleted();
await AssertEntityLookup((Glass, 2));
}
[Test]
public async Task ConstructReinforcedWindow()
{
await StartConstruction(RWindow);
await Interact(RGlass, 5);
AssertPrototype(RWindow);
}
[Test]
public async Task DeonstructReinforcedWindow()
{
await StartDeconstruction(RWindow);
await Interact(
Weld,
Screw,
Pry,
Weld,
Screw,
Wrench);
AssertDeleted();
await AssertEntityLookup((RGlass, 2));
}
}