diff --git a/UnityProject/Packages/com.jasonxudeveloper.jengine.util/Tests/Editor/JActionTests.cs b/UnityProject/Packages/com.jasonxudeveloper.jengine.util/Tests/Editor/JActionTests.cs index 077afb47..bca77b7c 100644 --- a/UnityProject/Packages/com.jasonxudeveloper.jengine.util/Tests/Editor/JActionTests.cs +++ b/UnityProject/Packages/com.jasonxudeveloper.jengine.util/Tests/Editor/JActionTests.cs @@ -473,7 +473,7 @@ public void Reset_AllowsReuse() { int counter = 0; - var action = JAction.Create() + using var action = JAction.Create() .Do(() => counter++); action.Execute(); @@ -484,8 +484,6 @@ public void Reset_AllowsReuse() .Execute(); Assert.AreEqual(11, counter); - - action.Dispose(); } #endregion