Audio runtime lifecycle tests
Section titled “Audio runtime lifecycle tests”Inno.Audio.Runtime.Tests verifies runtime ownership and failure behavior through controllable managed audio boundaries. It complements the runtime contract and does not replace native playback or device acceptance.
Behavior covered
Section titled “Behavior covered”AudioRuntimeTests checks that an already-consumed application lifecycle event still suspends audio and that stopping unsubscribes callbacks. Failed suspension rolls back retained mixer roots and remains retryable. Suspension also preserves user pause and replacement-mixer state.
Invalid playback options must fail before stealing a voice or acquiring an artifact. The source-backed fixtures make retained content and release obligations observable; a successful call without ownership assertions would be insufficient.
Run and maintain
Section titled “Run and maintain”Follow the shared validation workflow. For a focused diagnostic:
dotnet test tests/audio/Inno.Audio.Runtime.Tests/Inno.Audio.Runtime.Tests.csproj --configuration Debug --disable-build-servers -m:1 -nodeReuse:falseFixtures own their runtime, backend and content sources. Preserve explicit failure/cleanup checks rather than using private access or production test entry points. Public test methods are discovery infrastructure.