modular-avatar/UnitTests~/DuplicateObjectNameTest.cs

23 lines
643 B
C#
Raw Permalink Normal View History

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
[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
*/
}
}