From 478ef377525341080530bd382df9deeb6c083565 Mon Sep 17 00:00:00 2001 From: Seweryn Presnal Date: Mon, 15 Jul 2024 23:24:58 +0200 Subject: [PATCH] Remove unnecessary zero-length array allocation in StateTests --- ImperatorToCK3.UnitTests/Imperator/States/StateTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ImperatorToCK3.UnitTests/Imperator/States/StateTests.cs b/ImperatorToCK3.UnitTests/Imperator/States/StateTests.cs index e1b667e18..ae1cb07d5 100644 --- a/ImperatorToCK3.UnitTests/Imperator/States/StateTests.cs +++ b/ImperatorToCK3.UnitTests/Imperator/States/StateTests.cs @@ -5,6 +5,7 @@ using ImperatorToCK3.Imperator.Geography; using ImperatorToCK3.Imperator.Provinces; using ImperatorToCK3.Imperator.States; +using System; using System.Linq; using Xunit; @@ -14,7 +15,7 @@ namespace ImperatorToCK3.UnitTests.Imperator.States; [CollectionDefinition("Sequential", DisableParallelization = true)] public class StateTests { private const string ImperatorRoot = "TestFiles/StateTests"; - private static readonly ModFilesystem irModFS = new(ImperatorRoot, new Mod[] { }); + private static readonly ModFilesystem irModFS = new(ImperatorRoot, Array.Empty()); private static readonly ProvinceCollection provinces = new(); private static readonly AreaCollection areas = new(); private static readonly CountryCollection countries = new() {new Country(69), new Country(70)};