Files
tbd-station-14/Content.IntegrationTests/Tests/Construction/Interaction/WindowConstruction.cs
2023-04-14 12:41:25 -07:00

53 lines
1.2 KiB
C#

using System.Threading.Tasks;
using Content.IntegrationTests.Tests.Interaction;
using NUnit.Framework;
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));
}
}