From 104b5b02b2850f25f63055c7ec6584fecaf2a75e Mon Sep 17 00:00:00 2001 From: ikpil Date: Sat, 25 May 2024 23:01:16 +0900 Subject: [PATCH] cleanup TestMeshDataFactory --- test/DotRecast.Detour.Test/AbstractDetourTest.cs | 2 +- test/DotRecast.Detour.Test/Io/MeshDataReaderWriterTest.cs | 2 +- test/DotRecast.Detour.Test/NavMeshBuilderTest.cs | 2 +- .../{RecastTestMeshBuilder.cs => TestMeshDataFactory.cs} | 2 +- test/DotRecast.Recast.Test/RecastLayersTest.cs | 3 --- 5 files changed, 4 insertions(+), 7 deletions(-) rename test/DotRecast.Detour.Test/{RecastTestMeshBuilder.cs => TestMeshDataFactory.cs} (99%) diff --git a/test/DotRecast.Detour.Test/AbstractDetourTest.cs b/test/DotRecast.Detour.Test/AbstractDetourTest.cs index 01c2996..41eb9ac 100644 --- a/test/DotRecast.Detour.Test/AbstractDetourTest.cs +++ b/test/DotRecast.Detour.Test/AbstractDetourTest.cs @@ -65,7 +65,7 @@ public abstract class AbstractDetourTest protected DtNavMesh CreateNavMesh() { var mesh = new DtNavMesh(); - mesh.Init(RecastTestMeshBuilder.Create(), 6, 0); + mesh.Init(TestMeshDataFactory.Create(), 6, 0); return mesh; } } \ No newline at end of file diff --git a/test/DotRecast.Detour.Test/Io/MeshDataReaderWriterTest.cs b/test/DotRecast.Detour.Test/Io/MeshDataReaderWriterTest.cs index 43b1207..c5872ba 100644 --- a/test/DotRecast.Detour.Test/Io/MeshDataReaderWriterTest.cs +++ b/test/DotRecast.Detour.Test/Io/MeshDataReaderWriterTest.cs @@ -33,7 +33,7 @@ public class MeshDataReaderWriterTest [SetUp] public void SetUp() { - meshData = RecastTestMeshBuilder.Create(); + meshData = TestMeshDataFactory.Create(); } [Test] diff --git a/test/DotRecast.Detour.Test/NavMeshBuilderTest.cs b/test/DotRecast.Detour.Test/NavMeshBuilderTest.cs index bcb27f8..c2900e5 100644 --- a/test/DotRecast.Detour.Test/NavMeshBuilderTest.cs +++ b/test/DotRecast.Detour.Test/NavMeshBuilderTest.cs @@ -31,7 +31,7 @@ public class NavMeshBuilderTest [SetUp] public void SetUp() { - nmd = RecastTestMeshBuilder.Create(); + nmd = TestMeshDataFactory.Create(); } [Test] diff --git a/test/DotRecast.Detour.Test/RecastTestMeshBuilder.cs b/test/DotRecast.Detour.Test/TestMeshDataFactory.cs similarity index 99% rename from test/DotRecast.Detour.Test/RecastTestMeshBuilder.cs rename to test/DotRecast.Detour.Test/TestMeshDataFactory.cs index 2ec3e9e..fec3aab 100644 --- a/test/DotRecast.Detour.Test/RecastTestMeshBuilder.cs +++ b/test/DotRecast.Detour.Test/TestMeshDataFactory.cs @@ -22,7 +22,7 @@ using DotRecast.Recast.Geom; namespace DotRecast.Detour.Test; -public static class RecastTestMeshBuilder +public static class TestMeshDataFactory { private const float m_cellSize = 0.3f; private const float m_cellHeight = 0.2f; diff --git a/test/DotRecast.Recast.Test/RecastLayersTest.cs b/test/DotRecast.Recast.Test/RecastLayersTest.cs index 7641d64..f13689a 100644 --- a/test/DotRecast.Recast.Test/RecastLayersTest.cs +++ b/test/DotRecast.Recast.Test/RecastLayersTest.cs @@ -25,9 +25,6 @@ using NUnit.Framework; namespace DotRecast.Recast.Test; - - - public class RecastLayersTest { private const float m_cellSize = 0.3f;