diff --git a/Assets/VRM/Tests/UniVRMSerializeTests.cs b/Assets/VRM/Tests/UniVRMSerializeTests.cs index b266fa3b2..09de255ff 100644 --- a/Assets/VRM/Tests/UniVRMSerializeTests.cs +++ b/Assets/VRM/Tests/UniVRMSerializeTests.cs @@ -190,16 +190,6 @@ namespace VRM var json = model.ToJson(); Assert.AreEqual(@"{""presetName"":""neutral"",""binds"":[],""materialValues"":[],""isBinary"":false}", json); Debug.Log(json); - - // https://github.com/vrm-c/UniVRM/issues/694 - // Must pass even if this computer's locale was tr-TR. - var model2 = new glTF_VRM_BlendShapeGroup() - { - presetName = "I", - }; - var json2 = model2.ToJson(); - Assert.AreEqual(@"{""presetName"":""i"",""binds"":[],""materialValues"":[],""isBinary"":false}", json2); - Debug.Log(json); } [Test] @@ -210,6 +200,19 @@ namespace VRM presetName = "aaaaaaaaaaaa_not_exists_", }; } + + [Test] + public void BlendShapePresetInvariantCultureTest() + { + // https://github.com/vrm-c/UniVRM/issues/694 + // Must pass even if this computer's locale was tr-TR. + var clip2 = ScriptableObject.CreateInstance(); + clip2.Preset = BlendShapePreset.I; + var model2 = clip2.Serialize(null); + var json2 = model2.ToJson(); + Assert.AreEqual(@"{""presetName"":""i"",""binds"":[],""materialValues"":[],""isBinary"":false}", json2); + Debug.Log(json2); + } [Test] public void DegreeMapTest()