unity-mcp/TestProjects
dsarno 402eab56f9
Fix test failures by invalidating EditorConfigurationCache after setting EditorPrefs (#651)
Several tests were setting EditorPrefs values directly but not refreshing the
EditorConfigurationCache singleton, causing it to return stale cached values.
This led to tests expecting certain behavior (e.g., checking remote URL errors)
but getting unexpected errors (e.g., "HTTP transport is disabled").

Added EditorConfigurationCache.Instance.Refresh() calls to:
- ServerCommandBuilderTests.TryBuildCommand_RemoteUrl_ReturnsFalse()
- ServerCommandBuilderTests.TryBuildCommand_LocalUrl_ReturnsCommandOrError()
- ServerManagementServiceCharacterizationTests.TryGetLocalHttpServerCommand_RemoteUrl_ReturnsFalseWithError()
- WriteToConfigTests.SetUp()

This ensures the cache is refreshed when EditorPrefs are modified in tests.

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-29 15:44:43 -08:00
..
AssetStoreUploads Asset store helper script + updated README (#521) 2026-01-07 01:33:20 -04:00
UnityMCPTests Fix test failures by invalidating EditorConfigurationCache after setting EditorPrefs (#651) 2026-01-29 15:44:43 -08:00