Unity Test Framework Test types | Mode | What | Speed | |---|---|---| | EditMode | Pure C# logic, no scene | Fast ( ms) | | PlayMode | Runs in play mode, can Instantiate, FixedUpdate ticks | Slow (seconds) | Default to EditMode; reserve PlayMode for things that genuinely need the engine loop. Asmdef setup Add Test Assemblies flag in asmdef Inspector. EditMode test PlayMode test ( ) → next frame; , , . Mocking time / input - Time : inject an abstraction that wraps ; in tests pass a fake. - Input : don't read directly in test target — pass values via method, or use for low-level input simulatio…