WindowConstruction.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using Content.IntegrationTests.Tests.Interaction;
  2. namespace Content.IntegrationTests.Tests.Construction.Interaction;
  3. public sealed class WindowConstruction : InteractionTest
  4. {
  5. private const string Window = "Window";
  6. private const string RWindow = "ReinforcedWindow";
  7. [Test]
  8. public async Task ConstructWindow()
  9. {
  10. await StartConstruction(Window);
  11. await InteractUsing(Glass, 5);
  12. ClientAssertPrototype(Window, Target);
  13. }
  14. [Test]
  15. public async Task DeconstructWindow()
  16. {
  17. await StartDeconstruction(Window);
  18. await Interact(Screw, Wrench);
  19. AssertDeleted();
  20. await AssertEntityLookup((Glass, 2));
  21. }
  22. [Test]
  23. public async Task ConstructReinforcedWindow()
  24. {
  25. await StartConstruction(RWindow);
  26. await InteractUsing(RGlass, 5);
  27. ClientAssertPrototype(RWindow, Target);
  28. }
  29. [Test]
  30. public async Task DeonstructReinforcedWindow()
  31. {
  32. await StartDeconstruction(RWindow);
  33. await Interact(
  34. Weld,
  35. Screw,
  36. Pry,
  37. Weld,
  38. Screw,
  39. Wrench);
  40. AssertDeleted();
  41. await AssertEntityLookup((RGlass, 2));
  42. }
  43. }