Skip to content

Commit c2e8bf7

Browse files
author
AJubrey
committed
[ADDED] some test cases for when we install only one dcc. This would catch the issue we had.
1 parent 7acea4a commit c2e8bf7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Assets/FbxExporters/Editor/UnitTests/FbxExportSettingsTest.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,24 @@ public void TestFindPreferredProgram()
211211
preferred = ExportSettings.instance.GetPreferredDCCApp();
212212

213213
Assert.AreEqual(preferred, -1);
214+
215+
//Testing the results of only having a mayaLT install
216+
ExportSettings.instance.SetDCCOptionNames(new List<string> { "Maya LT"+ "2018" }); //hardcoded because the constant is changed in another branch but not this one at this time
217+
preferred = ExportSettings.instance.GetPreferredDCCApp();
218+
219+
Assert.AreEqual(preferred, 0);
220+
221+
//Testing the results of only having a maya install
222+
ExportSettings.instance.SetDCCOptionNames(new List<string> { ExportSettings.kMayaOptionName + "2018" }); //hardcoded because the constant is changed in another branch but not this one at this time
223+
preferred = ExportSettings.instance.GetPreferredDCCApp();
224+
225+
Assert.AreEqual(preferred, 0);
226+
227+
//Testing the results of only having a max install
228+
ExportSettings.instance.SetDCCOptionNames(new List<string> { ExportSettings.kMaxOptionName + "2018" }); //hardcoded because the constant is changed in another branch but not this one at this time
229+
preferred = ExportSettings.instance.GetPreferredDCCApp();
230+
231+
Assert.AreEqual(preferred, 0);
214232
}
215233

216234
[Test]

0 commit comments

Comments
 (0)