unity-mcp/TestProjects/UnityMCPTests/Assets/Tests/EditMode/Helpers
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
..
CodexConfigHelperTests.cs Fixes Windows installation failures caused by long path issues when cloning the full repository via git URL (MAX_PATH 260 char limit exceeded by files in TestProjects/). (#534) 2026-01-08 07:14:44 -08:00
CodexConfigHelperTests.cs.meta Add Codex to autoconfig options (#288) 2025-09-26 18:05:30 -04:00
Matrix4x4ConverterTests.cs Feature/run tests summary clean (#501) 2026-01-01 20:36:45 -08:00
Matrix4x4ConverterTests.cs.meta Test/478 matrix4x4 serialization crash (#481) 2025-12-23 15:53:14 -08:00
PaginationTests.cs 🔧 Clean up & Consolidate Shared Services Across MCP Tools (#519) 2026-01-06 12:58:17 -08:00
PaginationTests.cs.meta 🔧 Clean up & Consolidate Shared Services Across MCP Tools (#519) 2026-01-06 12:58:17 -08:00
ToolParamsTests.cs Large Cleanup and Refactor + Many new Tests added (#642) 2026-01-29 02:47:36 -08:00
ToolParamsTests.cs.meta Large Cleanup and Refactor + Many new Tests added (#642) 2026-01-29 02:47:36 -08:00
WriteToConfigTests.cs Fix test failures by invalidating EditorConfigurationCache after setting EditorPrefs (#651) 2026-01-29 15:44:43 -08:00
WriteToConfigTests.cs.meta Make it easier to add tools (#301) 2025-10-03 18:53:09 -04:00