unity-mcp/TestProjects/UnityMCPTests/Assets/Tests/EditMode
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
..
Helpers Fix test failures by invalidating EditorConfigurationCache after setting EditorPrefs (#651) 2026-01-29 15:44:43 -08:00
Resources Add testing and move menu items to resources (#316) 2025-10-13 11:16:43 -04:00
Services Fix test failures by invalidating EditorConfigurationCache after setting EditorPrefs (#651) 2026-01-29 15:44:43 -08:00
Tools Add create_child parameter to manage_prefabs modify_contents (#646) 2026-01-29 04:14:52 -08:00
Windows Large Cleanup and Refactor + Many new Tests added (#642) 2026-01-29 02:47:36 -08:00
Helpers.meta Add Codex to autoconfig options (#288) 2025-09-26 18:05:30 -04:00
MCPForUnityTests.Editor.asmdef Test/478 matrix4x4 serialization crash (#481) 2025-12-23 15:53:14 -08:00
MCPForUnityTests.Editor.asmdef.meta Rename namespace and public facing plugin output from "Unity MCP" to "MCP for Unity" (#225) 2025-08-20 15:59:49 -04:00
Resources.meta Add testing and move menu items to resources (#316) 2025-10-13 11:16:43 -04:00
Services.meta Allow users to easily add tools in the Asset folder (#324) 2025-10-18 00:18:25 -04:00
TestUtilities.cs Harden `manage_scriptable_object` Tool (#522) 2026-01-07 10:46:35 -04:00
TestUtilities.cs.meta Harden `manage_scriptable_object` Tool (#522) 2026-01-07 10:46:35 -04:00
Tools.meta Improve Windsurf MCP Config (#231) 2025-08-24 06:57:11 -04:00
Windows.meta Large Cleanup and Refactor + Many new Tests added (#642) 2026-01-29 02:47:36 -08:00