Skip to content

Commit 99a40ea

Browse files
committed
start adding unit tests for rotation curve
1 parent 7bbea0c commit 99a40ea

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using UnityEngine;
2+
using UnityEditor;
3+
using UnityEngine.TestTools;
4+
using NUnit.Framework;
5+
using System.Collections;
6+
using FbxExporters.Editor;
7+
8+
namespace FbxExporters.UnitTests
9+
{
10+
public class RotationCurveTest : ExporterTestBase {
11+
12+
private void TestRotationCurveBasics<T>() where T : RotationCurve {
13+
14+
}
15+
16+
[Test]
17+
public void TestQuaternionBasics(){
18+
19+
}
20+
21+
[Test]
22+
public void TestEulerBasics() {
23+
// Test get euler index
24+
var eulerCurve = new EulerCurve();
25+
Assert.That(EulerCurve.GetEulerIndex ("localEulerAnglesRaw.y"), Is.EqualTo(1));
26+
Assert.That(EulerCurve.GetEulerIndex ("localEulerAnglesRaw."), Is.EqualTo(-1));
27+
Assert.That(EulerCurve.GetEulerIndex ("Quaternion.x"), Is.EqualTo(-1));
28+
29+
// Test get quaternion index
30+
31+
// Test SetCurve
32+
33+
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)