fix(abcip-tests): fix static-init NRE blocking AbCip.IntegrationTests #446

Merged
dohertj2 merged 2 commits from fix/abcip-integration-static-init into master 2026-07-15 03:29:05 -04:00
Showing only changes of commit 326b22a7ba - Show all commits
@@ -27,7 +27,11 @@ public sealed record AbServerProfile(
public static class KnownProfiles
{
/// <summary>Gets all known server profiles.</summary>
public static IReadOnlyList<AbServerProfile> All { get; } =
/// <remarks>Expression-bodied (evaluated on access) so it observes the
/// <c>static readonly</c> profile fields below after they are initialised;
/// a <c>{ get; } =</c> initialiser here runs in textual order — before those
/// fields — and would capture an all-null list.</remarks>
public static IReadOnlyList<AbServerProfile> All =>
[ControlLogix, CompactLogix, Micro800, GuardLogix];
/// <summary>Gets the ControlLogix profile.</summary>