unity-mcp/TestProjects/UnityMCPTests/Assets
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
..
Scenes Large Cleanup and Refactor + Many new Tests added (#642) 2026-01-29 02:47:36 -08:00
Scripts Large Cleanup and Refactor + Many new Tests added (#642) 2026-01-29 02:47:36 -08:00
Tests Fix test failures by invalidating EditorConfigurationCache after setting EditorPrefs (#651) 2026-01-29 15:44:43 -08:00
UI Toolkit Large Cleanup and Refactor + Many new Tests added (#642) 2026-01-29 02:47:36 -08:00
Packages.meta feature/Add new manage_scriptable_object tool (#489) 2025-12-28 20:15:50 -08:00
Scenes.meta Set up Unit tests (#220) 2025-08-15 21:24:55 -04:00
Scripts.meta Set up Unit tests (#220) 2025-08-15 21:24:55 -04:00
Temp.meta 🔧 Clean up & Consolidate Shared Services Across MCP Tools (#519) 2026-01-06 12:58:17 -08:00
TestMat.mat Large Cleanup and Refactor + Many new Tests added (#642) 2026-01-29 02:47:36 -08:00
TestMat.mat.meta Large Cleanup and Refactor + Many new Tests added (#642) 2026-01-29 02:47:36 -08:00
Tests.meta Set up Unit tests (#220) 2025-08-15 21:24:55 -04:00
UI Toolkit.meta Large Cleanup and Refactor + Many new Tests added (#642) 2026-01-29 02:47:36 -08:00