diff --git a/TestProjects/UnityMCPTests/Assets/Tests/EditMode/Windows/Characterization/Windows_Characterization.cs b/TestProjects/UnityMCPTests/Assets/Tests/EditMode/Windows/Characterization/Windows_Characterization.cs index 06628db72..801b8bc3a 100644 --- a/TestProjects/UnityMCPTests/Assets/Tests/EditMode/Windows/Characterization/Windows_Characterization.cs +++ b/TestProjects/UnityMCPTests/Assets/Tests/EditMode/Windows/Characterization/Windows_Characterization.cs @@ -135,7 +135,11 @@ public void MCPSetupWindow_CachesMultipleUIElements_InCreateGUI() public void MCPSetupWindow_ModifiesClassListForStatus_ValidInvalidPattern() { var type = typeof(MCPSetupWindow); - var method = type.GetMethod("UpdateDependencyStatus", BindingFlags.NonPublic | BindingFlags.Instance); + // Static as well as Instance: the method takes every element it touches as an argument, + // so it carries no instance state and is declared static. Looking it up with Instance + // alone returned null and failed this test rather than reporting a behaviour change. + var method = type.GetMethod("UpdateDependencyStatus", + BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance); Assert.IsNotNull(method, "Should have UpdateDependencyStatus method");