@@ -166,11 +166,11 @@ public void TestGetSetFields ()
166
166
var appDataPath = Application . dataPath . Replace ( Path . AltDirectorySeparatorChar ,
167
167
Path . DirectorySeparatorChar ) ;
168
168
169
- var defaultAbsolutePath = ExportSettings . GetFbxAbsoluteSavePath ( ) ;
169
+ var defaultAbsolutePath = ExportSettings . FbxAbsoluteSavePath ;
170
170
var dataPath = Path . GetFullPath ( Path . Combine ( appDataPath , ExportSettings . kDefaultSavePath ) ) ;
171
171
Assert . AreEqual ( dataPath , defaultAbsolutePath ) ;
172
172
173
- var prefabDefaultAbsPath = ExportSettings . GetPrefabAbsoluteSavePath ( ) ;
173
+ var prefabDefaultAbsPath = ExportSettings . PrefabAbsoluteSavePath ;
174
174
Assert . AreEqual ( dataPath , prefabDefaultAbsPath ) ;
175
175
176
176
// set; check that the saved value is platform-independent,
@@ -184,8 +184,8 @@ public void TestGetSetFields ()
184
184
Assert . That ( ExportSettings . GetRelativePrefabSavePaths ( ) [ 0 ] , Is . EqualTo ( string . Format ( "Assets{0}a{0}b{0}c" , forwardSlash ) ) ) ;
185
185
186
186
var platformPath = Path . Combine ( "a" , Path . Combine ( "b" , "c" ) ) ;
187
- Assert . AreEqual ( Path . Combine ( appDataPath , platformPath ) , ExportSettings . GetFbxAbsoluteSavePath ( ) ) ;
188
- Assert . AreEqual ( Path . Combine ( appDataPath , platformPath ) , ExportSettings . GetPrefabAbsoluteSavePath ( ) ) ;
187
+ Assert . AreEqual ( Path . Combine ( appDataPath , platformPath ) , ExportSettings . FbxAbsoluteSavePath ) ;
188
+ Assert . AreEqual ( Path . Combine ( appDataPath , platformPath ) , ExportSettings . PrefabAbsoluteSavePath ) ;
189
189
190
190
ExportSettings . AddFbxSavePath ( "test" ) ;
191
191
ExportSettings . AddPrefabSavePath ( "test2" ) ;
@@ -212,43 +212,43 @@ public void TestFindPreferredProgram ()
212
212
213
213
ExportSettings . instance . SetDCCOptionNames ( testList ) ;
214
214
215
- int preferred = ExportSettings . instance . GetPreferredDCCApp ( ) ;
215
+ int preferred = ExportSettings . instance . PreferredDCCApp ;
216
216
//While Maya 2017 and 3ds Max 2017 are tied for most recent, Maya 2017 (index 8) should win because we prefer Maya.
217
217
Assert . AreEqual ( preferred , 8 ) ;
218
218
219
219
ExportSettings . instance . ClearDCCOptionNames ( ) ;
220
220
//Try running it with an empty list
221
- preferred = ExportSettings . instance . GetPreferredDCCApp ( ) ;
221
+ preferred = ExportSettings . instance . PreferredDCCApp ;
222
222
223
223
Assert . AreEqual ( preferred , - 1 ) ;
224
224
225
225
ExportSettings . instance . SetDCCOptionNames ( null ) ;
226
226
//Try running it with a null list
227
- preferred = ExportSettings . instance . GetPreferredDCCApp ( ) ;
227
+ preferred = ExportSettings . instance . PreferredDCCApp ;
228
228
229
229
Assert . AreEqual ( preferred , - 1 ) ;
230
230
231
231
//Testing the results of only having a mayaLT install
232
232
ExportSettings . instance . SetDCCOptionNames ( new List < string > { ExportSettings . kMayaLtOptionName + "2018" } ) ; //hardcoded because the constant is changed in another branch but not this one at this time
233
- preferred = ExportSettings . instance . GetPreferredDCCApp ( ) ;
233
+ preferred = ExportSettings . instance . PreferredDCCApp ;
234
234
235
235
Assert . AreEqual ( preferred , 0 ) ;
236
236
237
237
//Testing the results of only having a maya install
238
238
ExportSettings . instance . SetDCCOptionNames ( new List < string > { ExportSettings . kMayaOptionName + "2018" } ) ;
239
- preferred = ExportSettings . instance . GetPreferredDCCApp ( ) ;
239
+ preferred = ExportSettings . instance . PreferredDCCApp ;
240
240
241
241
Assert . AreEqual ( preferred , 0 ) ;
242
242
243
243
//Testing the results of only having a max install
244
244
ExportSettings . instance . SetDCCOptionNames ( new List < string > { ExportSettings . kMaxOptionName + "2018" } ) ;
245
- preferred = ExportSettings . instance . GetPreferredDCCApp ( ) ;
245
+ preferred = ExportSettings . instance . PreferredDCCApp ;
246
246
247
247
Assert . AreEqual ( preferred , 0 ) ;
248
248
249
249
//Testing the preference priority
250
250
ExportSettings . instance . SetDCCOptionNames ( new List < string > { ExportSettings . kMaxOptionName + "2018" , ExportSettings . kMayaOptionName + "2018" , ExportSettings . kMayaLtOptionName + "2018" } ) ;
251
- preferred = ExportSettings . instance . GetPreferredDCCApp ( ) ;
251
+ preferred = ExportSettings . instance . PreferredDCCApp ;
252
252
253
253
Assert . AreEqual ( preferred , 1 ) ;
254
254
}
@@ -485,7 +485,7 @@ private void TestLocations(Dictionary<string,List<string>> data)
485
485
486
486
if ( data . ContainsKey ( "expected3DApp" ) )
487
487
{
488
- int preferred = ExportSettings . instance . GetPreferredDCCApp ( ) ;
488
+ int preferred = ExportSettings . instance . PreferredDCCApp ;
489
489
Assert . AreEqual ( preferred , int . Parse ( data [ "expected3DApp" ] [ 0 ] ) ) ;
490
490
}
491
491
}
0 commit comments