Skip to content

Commit

Permalink
Add [TearDown] to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
notgiven688 committed Nov 27, 2024
1 parent ff3eec7 commit d358ce6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/JitterTests/AddRemoveTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ public void Setup()
world = new World();
}

[TearDown]
public void TearDown()
{
world.Dispose();
}

private class FilterOut(IDynamicTreeProxy shape) : IBroadPhaseFilter
{
public bool Filter(IDynamicTreeProxy shapeA, IDynamicTreeProxy shapeB)
Expand Down
2 changes: 1 addition & 1 deletion src/JitterTests/ConstraintTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public void Setup()
[TestCase]
public void TestSizes()
{
World world = new World();
using World world = new World();

RigidBody b0 = world.CreateRigidBody();
RigidBody b1 = world.CreateRigidBody();
Expand Down
6 changes: 6 additions & 0 deletions src/JitterTests/StackingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public void Setup()
};
}

[TearDown]
public void TearDown()
{
world.Dispose();
}

[TestCase(true)]
[TestCase(false)]
public void SimpleStack(bool fullEPA)
Expand Down

0 comments on commit d358ce6

Please sign in to comment.