Skip to content

Refactor recorded method names in HeadlessAudioPlayer for consistency…#17

Merged
JohnLudlow merged 1 commit intomainfrom
12-fix-headlessaudioplayer-recorded-method-name-strings-docsplansphase-2-consistency-fixesmd-phase-1
Apr 22, 2026
Merged

Refactor recorded method names in HeadlessAudioPlayer for consistency…#17
JohnLudlow merged 1 commit intomainfrom
12-fix-headlessaudioplayer-recorded-method-name-strings-docsplansphase-2-consistency-fixesmd-phase-1

Conversation

@JohnLudlow
Copy link
Copy Markdown
Owner

@JohnLudlow JohnLudlow commented Apr 22, 2026

Refactor recorded method names in HeadlessAudioPlayer for consistency… in tests #12

Project : project link
Issue : Fix #12

PR Overview

Fix method name refs for renamed methods post-refactor

PR Detail

Fix method name refs for renamed methods post-refactor

PR Impact

None

@JohnLudlow JohnLudlow requested a review from Copilot April 22, 2026 16:33
@JohnLudlow JohnLudlow added area-lib Items related to reusable libraries area-tests Items related to tests, automated tests, unit tests, testability and manual tests labels Apr 22, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the headless audio test double to record method names using nameof(...) (matching the public IAudioPlayer API), and aligns unit tests to assert against those recorded names rather than hard-coded string literals.

Changes:

  • Update HeadlessAudioPlayer to record StartPlayback/StopPlayback/SetVolume via nameof(...) instead of "Play"/"Stop"/"SetVolume".
  • Update HeadlessAudioPlayerTests assertions to compare against nameof(...) for the recorded method name values.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/GameEngineAdapter.Headless/HeadlessAudioPlayer.cs Records call method identifiers using nameof(...) for API-consistent naming.
src/GameEngineAdapter.UnitTests/HeadlessAudioPlayerTests.cs Updates assertions to expect the new recorded method names.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JohnLudlow JohnLudlow merged commit 41c3698 into main Apr 22, 2026
17 checks passed
@JohnLudlow JohnLudlow deleted the 12-fix-headlessaudioplayer-recorded-method-name-strings-docsplansphase-2-consistency-fixesmd-phase-1 branch April 24, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-lib Items related to reusable libraries area-tests Items related to tests, automated tests, unit tests, testability and manual tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix HeadlessAudioPlayer recorded method name strings (docs/plans/phase-2-consistency-fixes.md Phase 1)

2 participants