Skip to content

Commit da9b5e7

Browse files
author
AJubrey
committed
[CHANGED] the unit test now uses a reference to the "exported" object instead of its name, giving a more accurate test
1 parent 9a5f561 commit da9b5e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assets/FbxExporters/Editor/UnitTests/ConvertToModelTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ public void MapNameToSourceTest()
210210
var dictionary = ConvertToModel.MapNameToSourceRecursive(cube, cube2);
211211

212212
//We expect these to pass because we've given it an identical game object, as it would have after a normal export.
213-
Assert.AreEqual(capsule.name, dictionary[capsule.name].name);
214-
Assert.AreEqual(sphere.name, dictionary[sphere.name].name);
215-
Assert.AreEqual(quad.name, dictionary[quad.name].name);
213+
Assert.AreSame(capsule2, dictionary[capsule.name]);
214+
Assert.AreSame(sphere2, dictionary[sphere.name]);
215+
Assert.AreEqual(quad2, dictionary[quad.name]);
216216

217217
//the dictionary size should be equal to the amount of children + the parent
218218
Assert.True(dictionary.Count == cube.transform.childCount + 1);

0 commit comments

Comments
 (0)