using Content.IntegrationTests.Tests.Interaction; using Content.Shared.Chemistry.Reagent; using Robust.Shared.Reflection; using Robust.Shared.Serialization; using Robust.Shared.Utility; namespace Content.IntegrationTests.Tests.Chemistry; [TestFixture] [TestOf(typeof(ReagentData))] public sealed class ReagentDataTest { [Test] public void ReagentDataIsSerializable() { var reflection = Pair.Server.ResolveDependency(); Assert.Multiple(() => { foreach (var instance in reflection.GetAllChildren(typeof(ReagentData))) { Assert.That(instance.HasCustomAttribute(), $"{instance} must have the NetSerializable attribute."); Assert.That(instance.HasCustomAttribute(), $"{instance} must have the serializable attribute."); } }); } }