test(worker): silence CS0649 on reflection-only FakeMxStatus fields

This commit is contained in:
Joseph Doherty
2026-06-15 10:42:59 -04:00
parent 29399325d5
commit dde9934e60
@@ -96,6 +96,10 @@ internal sealed class NoopMxAccessServer : IMxAccessServer
/// </summary>
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
/// <summary>Success indicator field read by the status converter.</summary>
public int success;
@@ -107,4 +111,5 @@ internal sealed class FakeMxStatus
/// <summary>Status detail field read by the status converter.</summary>
public int detail;
#pragma warning restore CS0649
}