From e92c2140b41977bab5719ad89291bbf6d5bc421a Mon Sep 17 00:00:00 2001 From: soul Date: Fri, 23 Oct 2026 03:01:42 +0200 Subject: [PATCH] SemiAutoCatalogTests: the shipped catalog holds no plain gun, only guns Co-Authored-By: Claude Sonnet 5.5 --- tests/Aetheria.Shared.Tests/SemiAutoCatalogTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/SemiAutoCatalogTests.cs b/tests/Aetheria.Shared.Tests/SemiAutoCatalogTests.cs index 65ef6542b..cca1d8c22 100644 --- a/tests/Aetheria.Shared.Tests/SemiAutoCatalogTests.cs +++ b/tests/Aetheria.Shared.Tests/SemiAutoCatalogTests.cs @@ -24,10 +24,10 @@ public sealed class SemiAutoCatalogTests cache.AddBackingStore(new SingleFileMessagePackBackingStore(catalog, true), AetheriaStores.CatalogTypes); var gear = cache.GetAll().ToArray(); Assert.Empty(InstantWeaponData.SemiAutoFaults(gear)); - // The check reads real guns, and the two automatic ones are AutoWeapons with their authored cadence. + // The check reads a catalog that holds guns, and the two automatic ones are AutoWeapons. foreach (var name in new[] { "Slug Rifle", "Long Slug Rifle" }) Assert.IsType(gear.Single(g => g.Name == name).Behaviors.Single(b => b is InstantWeaponData)); - Assert.Contains(gear, g => g.Behaviors.Any(b => b.GetType() == typeof(InstantWeaponData))); + Assert.Contains(gear, g => g.Behaviors.Any(b => b is InstantWeaponData)); } [Fact]