Skip to content

Commit 6826e82

Browse files
author
AJubrey
committed
[ADDED] worked on the directory creation
1 parent bf53d59 commit 6826e82

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Assets/FbxExporters/Editor/UnitTests/FbxExportSettingsTest.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,17 +217,22 @@ public void TestFindPreferredProgram()
217217
public void TestGetDCCOptions()
218218
{
219219
string projectPath = Application.dataPath;
220-
220+
Debug.Log(projectPath);
221221
var firstPath = Directory.CreateDirectory(projectPath + "/GetDCCOptionsTestFolder/3ds max 3000");
222-
223-
FileInfo firstExe = new FileInfo(firstPath + "3dsmax.exe");
222+
var secondPath = Directory.CreateDirectory(projectPath + "/GetDCCOptionsTestFolder/3ds max 3001");
223+
FileInfo firstExe = new FileInfo(projectPath + "/GetDCCOptionsTestFolder/3ds max 3000/3dsmax.exe");
224224
firstExe.Create();
225+
firstExe.Open(FileMode.Open);
225226

226227

227228
List<string> testPathList = new List<string>();
228-
testPathList.Add("C:/Program Files/Autodesk/3ds Max 2025/3dsmax.exe"); //bogus path which should be removed
229-
testPathList.Add("C:/Program Files/Autodesk/3ds Max 2020/3dsmax.exe");
229+
testPathList.Add(projectPath + "/GetDCCOptionsTestFolder/3ds max 3001"); //bogus path which should be removed
230+
testPathList.Add(projectPath + "/GetDCCOptionsTestFolder/3ds max 3000");
230231
testPathList.Add("C:/Program Files/Autodesk/3ds Max 2018/3dsmax.exe");
232+
233+
firstExe.Delete();
234+
firstPath.Delete();
235+
secondPath.Delete();
231236
}
232237

233238
}

0 commit comments

Comments
 (0)