Fix tests which use hardcoded versions

This commit is contained in:
yutopp 2019-02-15 19:16:03 +09:00
parent 40401538c8
commit 130f049a43

View File

@ -646,7 +646,9 @@ namespace VRM
EnableDiagnosisForNotRequiredFields = true,
};
var json2 = JsonSchema.FromType<glTF_VRM_extensions>().Serialize(model, c);
Assert.AreEqual(@"{""exporterVersion"":""UniVRM-0.50"",""specVersion"":""0.0""}",json2);
var expected =
String.Format(@"{{""exporterVersion"":""{0}"",""specVersion"":""0.0""}}", VRMVersion.VRM_VERSION);
Assert.AreEqual(expected,json2);
}
// TODO: Move to another suitable location