From dde9934e60d38a17914bd91ad45b294c1c69f00d Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 15 Jun 2026 10:42:59 -0400 Subject: [PATCH] test(worker): silence CS0649 on reflection-only FakeMxStatus fields --- .../TestSupport/NoopMxAccessServer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ZB.MOM.WW.MxGateway.Worker.Tests/TestSupport/NoopMxAccessServer.cs b/src/ZB.MOM.WW.MxGateway.Worker.Tests/TestSupport/NoopMxAccessServer.cs index b2964a3..692db6a 100644 --- a/src/ZB.MOM.WW.MxGateway.Worker.Tests/TestSupport/NoopMxAccessServer.cs +++ b/src/ZB.MOM.WW.MxGateway.Worker.Tests/TestSupport/NoopMxAccessServer.cs @@ -96,6 +96,10 @@ internal sealed class NoopMxAccessServer : IMxAccessServer /// internal sealed class FakeMxStatus { + // These public fields exist solely so MxStatusProxyConverter can reflect + // over them by name; they are read through reflection, not directly, so the + // compiler's "never assigned" (CS0649) diagnostic does not apply. +#pragma warning disable CS0649 /// Success indicator field read by the status converter. public int success; @@ -107,4 +111,5 @@ internal sealed class FakeMxStatus /// Status detail field read by the status converter. public int detail; +#pragma warning restore CS0649 }