diff --git a/Content.IntegrationTests/Tests/Solutions/ReagentDispenserTest.cs b/Content.IntegrationTests/Tests/Solutions/ReagentDispenserTest.cs new file mode 100644 index 0000000000..193939b420 --- /dev/null +++ b/Content.IntegrationTests/Tests/Solutions/ReagentDispenserTest.cs @@ -0,0 +1,32 @@ +#nullable enable +using System.Threading.Tasks; +using Content.Shared.Chemistry; +using Content.Shared.GameObjects.Components.Chemistry.ReagentDispenser; +using NUnit.Framework; +using Robust.Shared.Prototypes; + +namespace Content.IntegrationTests.Tests.Solutions +{ + [TestFixture] + public sealed class ReagentDispenserTest : ContentIntegrationTest + { + [Test] + public async Task TestReagentDispenserInventory() + { + var server = StartServerDummyTicker(); + await server.WaitIdleAsync(); + var protoManager = server.ResolveDependency(); + + await server.WaitAssertion(() => + { + foreach (var proto in protoManager.EnumeratePrototypes()) + { + foreach (var chem in proto.Inventory) + { + Assert.That(protoManager.HasIndex(chem), $"Unable to find chem {chem} in ReagentDispenserInventory {proto.ID}"); + } + } + }); + } + } +}