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
Owner

Integration-sweep follow-up #1. Expression-body KnownProfiles.All so it evaluates after the static readonly profile fields it references (was a { get; } = initialiser running before them → all-null list → NRE in ForFamily → whole suite blocked). Live-verified against the controllogix fixture: 6F/1P/3skip → 10 pass / 0 fail / 3 skip.

Integration-sweep follow-up #1. Expression-body `KnownProfiles.All` so it evaluates after the static readonly profile fields it references (was a `{ get; } =` initialiser running before them → all-null list → NRE in ForFamily → whole suite blocked). Live-verified against the controllogix fixture: 6F/1P/3skip → 10 pass / 0 fail / 3 skip.
dohertj2 added 2 commits 2026-07-15 03:28:33 -04:00
KnownProfiles.All used a { get; } = [...] initialiser declared textually
before the static readonly profile fields it references, so C# static-init
order captured an all-null list. ForFamily() then NRE'd on p.Family, faulting
AbServerFixture..ctor and blocking the whole AbCip.IntegrationTests suite.

Expression-body it so it evaluates on access, after the fields are set.
Live-verified against the controllogix fixture: suite goes 6F/1P/3skip ->
10 pass / 0 fail / 3 skip (skips = emulator-mode tests).

Integration-sweep follow-up #1 (archreview/plans/INTEGRATION-SWEEP-STATUS.md).
docs(archreview): mark integration-sweep follow-up #1 (AbCip static-init) done
v2-ci / build (pull_request) Successful in 4m19s
v2-ci / unit-tests (pull_request) Failing after 17m55s
2ba867b0f8
dohertj2 merged commit c1482802d4 into master 2026-07-15 03:29:05 -04:00
Sign in to join this conversation.