unity-mcp/TestProjects/UnityMCPTests/Assets/Tests
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
..
EditMode Fix test failures by invalidating EditorConfigurationCache after setting EditorPrefs (#651) 2026-01-29 15:44:43 -08:00
PlayMode Fix PlayMode tests stalling when unfocused (python refresh utility), improve domain reload recovery and refresh tool (#554) 2026-01-14 15:02:40 -08:00
EditMode.meta Set up Unit tests (#220) 2025-08-15 21:24:55 -04:00
PlayMode.meta Fix PlayMode tests stalling when unfocused (python refresh utility), improve domain reload recovery and refresh tool (#554) 2026-01-14 15:02:40 -08:00