using System; using System.Linq; using Content.Shared.Inventory; using NUnit.Framework; using static Content.Shared.Inventory.EquipmentSlotDefines; namespace Content.Tests.Shared { [TestFixture] [Parallelizable(ParallelScope.All)] [TestOf(typeof(EquipmentSlotDefines))] public class EquipmentSlotDefinesTest { /// /// Test that all slots are contained in /// [Test] public void TestAllSlotsContainsAll() { foreach (var slotObj in Enum.GetValues(typeof(Slots))) { var slot = (Slots) slotObj; if (slot == Slots.NONE || slot == Slots.LAST) { // Not real slots, skip these. continue; } Assert.That(AllSlots.Contains(slot)); } } /// /// Test that every slot has an entry in . /// [Test] public void TestSlotNamesContainsAll() { foreach (var slot in AllSlots) { Assert.That(SlotNames, Contains.Key(slot)); } } /// /// Test that every slot has an entry in . /// [Test] public void TestSlotMasksContainsAll() { foreach (var slot in AllSlots) { Assert.That(SlotMasks, Contains.Key(slot)); } } } }