Skip to content

Commit cfe616a

Browse files
author
Benoit Hudson
committed
Test a tiny bit harder.
1 parent 5f8765d commit cfe616a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Assets/FbxExporters/Editor/UnitTests/ConvertToModelTest.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,18 @@ public void BasicTest()
137137
directoryFullPath: path, keepOriginal: true);
138138

139139
// Make sure it's what we expect.
140-
Assert.IsTrue(cube); // we kept the original
141-
Assert.IsTrue(cubePrefabInstance); // we got the new
140+
Assert.That(cube); // we kept the original
141+
Assert.That(cubePrefabInstance); // we got the new
142142
Assert.AreEqual("Cube", cubePrefabInstance.name); // it has the right name
143-
Assert.IsFalse(EditorUtility.IsPersistent(cubePrefabInstance));
143+
Assert.That(!EditorUtility.IsPersistent(cubePrefabInstance));
144144
var cubePrefabAsset = PrefabUtility.GetPrefabParent(cubePrefabInstance);
145+
Assert.That(cubePrefabAsset);
145146

146147
// it's a different mesh instance, but the same mesh
147148
Assert.AreNotEqual(
148149
cube.GetComponent<MeshFilter>().sharedMesh,
149150
cubePrefabInstance.GetComponent<MeshFilter>().sharedMesh);
150-
Assert.IsTrue(cubePrefabInstance.GetComponent<FbxPrefab>());
151+
Assert.That(cubePrefabInstance.GetComponent<FbxPrefab>());
151152

152153
// Should be all the same triangles. But it isn't. TODO.
153154
// At least the indices should match in multiplicity.

0 commit comments

Comments
 (0)