Simplify collection initialization

This commit is contained in:
2025-09-27 23:32:48 +02:00
parent 09ac8d0433
commit f6e5a34278
2 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ namespace QuadtreeTests
public void TestQuery()
{
AddEntitiesAndAssertCount();
List<TestEntity> result = new();
List<TestEntity> result = [];
_quadtree.Query(new Rectangle(new Vector2(2.5f, 2.5f), new Vector2(10.0f, 10.0f)), result);
Assert.That(result, Has.Count.EqualTo(2));
}