Skip to content

Commit b204ba9

Browse files
committed
Apply review feedback
1 parent 7fe04e0 commit b204ba9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Assets/Tests/InputSystem/Plugins/MockKeyboardWithUITests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class MockKeyboardWithUITests : InputTestFixture
1717
private GameObject m_ButtonGo;
1818
private InputActionAsset m_InputActionAsset;
1919

20+
// We only use this simple class as an adapter for a lambda closure that we need for assertion to work below.
2021
public class CancellationHandler : MonoBehaviour, ICancelHandler
2122
{
2223
public Action trigger;
@@ -57,6 +58,8 @@ public override void TearDown()
5758
GameObject.Destroy(m_EventSystemGo);
5859
GameObject.Destroy(m_CanvasGo);
5960

61+
GameObject.Destroy(m_InputActionAsset);
62+
6063
InputSystem.RemoveDevice(m_Keyboard);
6164

6265
base.TearDown();

0 commit comments

Comments
 (0)