Skip to content

Commit c0a4245

Browse files
committed
add backslash unit tests
make sure paths we send to maya don't have backslashes
1 parent 5ca7f59 commit c0a4245

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Assets/FbxExporters/Editor/UnitTests/IntegrationsTest.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ public void BasicTest() {
4848
LogNonEmptyString("package path", Editor.Integrations.GetPackagePath());
4949
LogNonEmptyString("package version", Editor.Integrations.GetPackageVersion());
5050
LogNonEmptyString("temp path", Editor.Integrations.GetTempSavePath());
51+
LogNonEmptyString("export settings path", Editor.Integrations.GetExportSettingsPath ());
52+
53+
// test that the paths don't contain backslashes
54+
Assert.IsFalse(Editor.Integrations.GetAppPath().Contains("\\"));
55+
Assert.IsFalse(Editor.Integrations.GetProjectPath().Contains("\\"));
56+
Assert.IsFalse(Editor.Integrations.GetTempSavePath().Contains("\\"));
57+
Assert.IsFalse(Editor.Integrations.GetExportSettingsPath ().Contains("\\"));
5158
}
5259
}
5360
}

0 commit comments

Comments
 (0)