How to Unit Test Player Input in Unity

Writing unit tests for Unity input code is hard because Unity’s Input class is static. In this video I’m going to show you two techniques that’ll make unit testing with Unity’s time and input APIs much easier: The Humble Object Pattern and Depencency Injection.