How to reproduce:
1. Open the attached “IN-116338” project
2. Switch to IL2CPP scripting backend (Edit->Project Settings->Player->Other Settings->Configuration->Scripting Backend)
3. In the Test Runner window, run all the Player tests (Window->General->Test Runner)
4. Observe the Console window
Expected result: The test passes in the Test Runner window.
Actual result: The test fails in the Test Runner window.
Reproducible with: 6000.0.0b14(7e2d2d32ab03), 6000.0.59f2, 6000.2.7f2, 6000.3.0b5, 6000.4.0a2
Could not test with: 2023.1.0a1 (Project can not compile with "Assets/Tests.cs(11,6): error CS0246: The type or namespace name 'Test' could not be found" error), 2023.2.0f1, 2023.3.0b7, 6000.0.0b13 (Build failed with "UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()" error)
Reproduced on: macOS 15.6 (M1)
Not reproduced on: No other environment tested
Notes:
- The test passes if switched to the Mono scripting backend
- Rarely is an InvalidOperationException thrown in the Console window