cleanup TestMeshDataFactory

This commit is contained in:
ikpil 2024-05-25 23:01:16 +09:00
parent 34d2ef639a
commit 104b5b02b2
5 changed files with 4 additions and 7 deletions

View File

@ -65,7 +65,7 @@ public abstract class AbstractDetourTest
protected DtNavMesh CreateNavMesh() protected DtNavMesh CreateNavMesh()
{ {
var mesh = new DtNavMesh(); var mesh = new DtNavMesh();
mesh.Init(RecastTestMeshBuilder.Create(), 6, 0); mesh.Init(TestMeshDataFactory.Create(), 6, 0);
return mesh; return mesh;
} }
} }

View File

@ -33,7 +33,7 @@ public class MeshDataReaderWriterTest
[SetUp] [SetUp]
public void SetUp() public void SetUp()
{ {
meshData = RecastTestMeshBuilder.Create(); meshData = TestMeshDataFactory.Create();
} }
[Test] [Test]

View File

@ -31,7 +31,7 @@ public class NavMeshBuilderTest
[SetUp] [SetUp]
public void SetUp() public void SetUp()
{ {
nmd = RecastTestMeshBuilder.Create(); nmd = TestMeshDataFactory.Create();
} }
[Test] [Test]

View File

@ -22,7 +22,7 @@ using DotRecast.Recast.Geom;
namespace DotRecast.Detour.Test; namespace DotRecast.Detour.Test;
public static class RecastTestMeshBuilder public static class TestMeshDataFactory
{ {
private const float m_cellSize = 0.3f; private const float m_cellSize = 0.3f;
private const float m_cellHeight = 0.2f; private const float m_cellHeight = 0.2f;

View File

@ -25,9 +25,6 @@ using NUnit.Framework;
namespace DotRecast.Recast.Test; namespace DotRecast.Recast.Test;
public class RecastLayersTest public class RecastLayersTest
{ {
private const float m_cellSize = 0.3f; private const float m_cellSize = 0.3f;