Skip to content

Commit 9a5f561

Browse files
author
AJubrey
committed
[ADDED] just a small test of the number of dictionary entries
1 parent 6f9e399 commit 9a5f561

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/FbxExporters/Editor/UnitTests/ConvertToModelTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ public void MapNameToSourceTest()
214214
Assert.AreEqual(sphere.name, dictionary[sphere.name].name);
215215
Assert.AreEqual(quad.name, dictionary[quad.name].name);
216216

217-
Assert.AreNotSame(cube.GetInstanceID(), cube2.GetInstanceID());
217+
//the dictionary size should be equal to the amount of children + the parent
218+
Assert.True(dictionary.Count == cube.transform.childCount + 1);
218219
}
219220
}
220221
}

0 commit comments

Comments
 (0)