diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip.IntegrationTests/AbServerProfile.cs b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip.IntegrationTests/AbServerProfile.cs index 04bb1509..066bfd50 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip.IntegrationTests/AbServerProfile.cs +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip.IntegrationTests/AbServerProfile.cs @@ -27,7 +27,11 @@ public sealed record AbServerProfile( public static class KnownProfiles { /// Gets all known server profiles. - public static IReadOnlyList All { get; } = + /// Expression-bodied (evaluated on access) so it observes the + /// static readonly profile fields below after they are initialised; + /// a { get; } = initialiser here runs in textual order — before those + /// fields — and would capture an all-null list. + public static IReadOnlyList All => [ControlLogix, CompactLogix, Micro800, GuardLogix]; /// Gets the ControlLogix profile.