UniVRM/Assets/VRM10/vrmlib/Tests/HumanoidTests.cs
ousttrue d53942a7bd merge vrm10
* MeshUtility を UniGLTF 下に移動
* Assets/VRM10 を追加
* JsonSchemaからのコード生成 UniGLTF/Editor/Generator を追加
2021-01-07 13:37:24 +09:00

29 lines
655 B
C#

using System;
using System.IO;
using VrmLib;
using NUnit.Framework;
namespace VrmLibTests
{
public class HumanoidTests
{
DirectoryInfo RootPath
{
get
{
return new FileInfo(GetType().Assembly.Location).Directory.Parent.Parent.Parent.Parent;
}
}
[Test]
[TestCase("Assets/UniVrm.bvh")]
public void HumanoidTest(string filename)
{
var humanoid = new Humanoid();
Assert.False(humanoid.HasRequiredBones);
Assert.Throws<ArgumentException>(() => humanoid.Add(HumanoidBones.unknown, null));
}
}
}