chore(agent-v2-tests): silence xUnit1012 by marking errorCode nullable

Codex review hygiene: the new
`AppStateChange_Error_promoted_carries_failureType_and_errorCode` Theory
passes null via [InlineData(EspAppsTimeout, null)] for the no-HRESULT
fallback case, but declared the parameter as non-nullable `string` (the
test project has <Nullable>enable</Nullable>). Switch to `string?` to
match the value flow and silence the xUnit1012 analyzer warning. Behaviour
unchanged — the test still asserts that the no-HRESULT branch omits the
DataJson.errorCode key entirely.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Oliver Kieselbach
2026-05-28 14:22:27 +02:00
parent dc0b9d7652
commit 5ee72db2e2
@@ -352,7 +352,7 @@ namespace AutopilotMonitor.Agent.V2.Core.Tests.SignalAdapters
[InlineData(AutopilotMonitor.Shared.Constants.AppFailureTypes.EspAppsTimeout, null)]
[InlineData(AutopilotMonitor.Shared.Constants.AppFailureTypes.EspAppsDetectionFailure, "0x87d1041c")]
[InlineData(AutopilotMonitor.Shared.Constants.AppFailureTypes.EspAppsInstallFailure, "0x80070643")]
public void AppStateChange_Error_promoted_carries_failureType_and_errorCode(string failureType, string errorCode)
public void AppStateChange_Error_promoted_carries_failureType_and_errorCode(string failureType, string? errorCode)
{
// Codex review follow-up (P1) — when the V2 EnrollmentTerminationHandler
// promotes an app from Installing -> Error via