2023-08-20 13:15:10 +08:00
|
|
|
|
using modular_avatar_tests;
|
|
|
|
|
using nadena.dev.modular_avatar.core.editor;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
|
|
|
|
|
namespace _ModularAvatar.EditModeTests
|
|
|
|
|
{
|
|
|
|
|
public class DuplicateObjectNameTest : TestBase
|
|
|
|
|
{
|
2023-08-05 14:47:03 +08:00
|
|
|
|
/* TODO - move to build framework
|
2023-08-20 13:15:10 +08:00
|
|
|
|
[Test]
|
|
|
|
|
public void test_duplicate_object_names()
|
|
|
|
|
{
|
|
|
|
|
var avatar = CreateRoot("root");
|
|
|
|
|
var c1 = CreateChild(avatar, "child");
|
|
|
|
|
var c2 = CreateChild(avatar, "child");
|
|
|
|
|
|
|
|
|
|
PathMappings.Init(avatar);
|
|
|
|
|
c2.gameObject.name = "child2";
|
|
|
|
|
Assert.AreEqual(PathMappings.MapPath("child"), "child");
|
|
|
|
|
}
|
2023-08-05 14:47:03 +08:00
|
|
|
|
*/
|
2023-08-20 13:15:10 +08:00
|
|
|
|
}
|
|
|
|
|
}
|