Skip to content

Commit 0f8587e

Browse files
committed
Update for unit tests
1 parent afec48e commit 0f8587e

File tree

4 files changed

+2244
-18
lines changed

4 files changed

+2244
-18
lines changed

Assets/FbxExporters/Editor/UnitTests/ExportTimelineClip.cs renamed to Assets/FbxExporters/Editor/UnitTests/ExportTimelineClipTest.cs

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace FbxExporters.UnitTests
1010
{
11-
public class ExportTimelineClip : ExporterTestBase
11+
public class ExportTimelineClipTest : ExporterTestBase
1212
{
1313
[SetUp]
1414
public void Init()
@@ -46,9 +46,6 @@ public void ExportClip()
4646
//Create clip (timeline) with Animation Clip
4747
//UnityEngine.Timeline.TimelineClip timeLineClip = new UnityEngine.Timeline.TimelineClip();
4848

49-
50-
51-
5249
/*var selectedObjects = Selection.objects;
5350
foreach (var obj in selectedObjects)
5451
{
@@ -73,32 +70,23 @@ public void ExportClip()
7370
}
7471
}*/
7572

76-
77-
78-
Assert.IsTrue(FbxPrefabAutoUpdater.OnValidateMenuItem());
73+
// Assert.IsTrue(FbxPrefabAutoUpdater.OnValidateMenuItem());
7974
}
8075

8176
[Test]
8277
public void ExportAllTimelineClip()
8378
{
84-
GameObject myCube = GameObject.Find("Cube");
79+
GameObject myCube = GameObject.Find("CubeSpecial");
8580
Selection.objects = new UnityEngine.GameObject[] { myCube };
86-
string folderPath = Application.dataPath + "/Assets/UnitTest";
81+
string folderPath = Application.dataPath + "/UnitTest/";
8782
Debug.Log(folderPath);
8883
foreach(GameObject obj in Selection.objects)
8984
{
90-
ModelExporter.ExportAllTimelineClips(obj, Application.dataPath + "/Assets/UnitTest/");
91-
FileAssert.Exists(folderPath + obj.name + "@Recorded.fbx");
92-
85+
ModelExporter.ExportAllTimelineClips(obj, folderPath);
86+
FileAssert.Exists(folderPath + obj.name + "@Animation Track.fbx");
9387
}
94-
95-
96-
9788
}
9889

99-
100-
101-
10290
[TearDown]
10391
public void StopTest()
10492
{

0 commit comments

Comments
 (0)