From bde7b1c1e0a2df69afd0f534dec6e6f765295b86 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 7 Nov 2024 13:44:25 +0100 Subject: [PATCH] expand overlap test to include padding and pixel padding --- Tests/TexturePackerTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/TexturePackerTests.cs b/Tests/TexturePackerTests.cs index 68bbc656..3d0cebe2 100644 --- a/Tests/TexturePackerTests.cs +++ b/Tests/TexturePackerTests.cs @@ -40,11 +40,11 @@ public void TestPacking() { } [Test] - public void TestOverlap() { + public void TestOverlap([Values(0, 1, 5, 10)] int padding) { var packed = new List(); using (var packer = new RuntimeTexturePacker(8192)) { for (var i = 1; i <= 1000; i++) - packer.Add(new TextureRegion(this.testTexture, 0, 0, i % 239, i % 673), packed.Add); + packer.Add(new TextureRegion(this.testTexture, 0, 0, i % 239, i % 673), packed.Add, padding); packer.Pack(this.Game.GraphicsDevice); }