File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Assets/FbxExporters/Editor/UnitTests Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -217,17 +217,22 @@ public void TestFindPreferredProgram()
217
217
public void TestGetDCCOptions ( )
218
218
{
219
219
string projectPath = Application . dataPath ;
220
-
220
+ Debug . Log ( projectPath ) ;
221
221
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" ) ;
224
224
firstExe . Create ( ) ;
225
+ firstExe . Open ( FileMode . Open ) ;
225
226
226
227
227
228
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 ") ;
230
231
testPathList . Add ( "C:/Program Files/Autodesk/3ds Max 2018/3dsmax.exe" ) ;
232
+
233
+ firstExe . Delete ( ) ;
234
+ firstPath . Delete ( ) ;
235
+ secondPath . Delete ( ) ;
231
236
}
232
237
233
238
}
You can’t perform that action at this time.
0 commit comments