File tree Expand file tree Collapse file tree 5 files changed +14
-12
lines changed
Assets/FbxExporters/Editor/UnitTests Expand file tree Collapse file tree 5 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ public class DefaultSelectionTest : ExporterTestBase
19
19
protected bool m_centerObjectsSetting ;
20
20
21
21
[ SetUp ]
22
- public void Init ( )
22
+ public override void Init ( )
23
23
{
24
+ base . Init ( ) ;
24
25
m_centerObjectsSetting = FbxExporters . EditorTools . ExportSettings . instance . centerObjects ;
25
26
}
26
27
Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ public class ExportPerformanceTest : ExporterTestBase
18
18
private GameObject m_toExport ;
19
19
20
20
[ SetUp ]
21
- public void Init ( )
21
+ public override void Init ( )
22
22
{
23
+ base . Init ( ) ;
23
24
m_stopwatch = new Stopwatch ( ) ;
24
25
m_toExport = CreateGameObjectToExport ( ) ;
25
26
}
Original file line number Diff line number Diff line change @@ -201,21 +201,18 @@ public virtual void Term ()
201
201
// Delete the directory on the next editor update. Otherwise,
202
202
// prefabs don't get deleted and the directory delete fails.
203
203
EditorApplication . update += DeleteOnNextUpdate ;
204
+
205
+ // Put back the initial setting for the auto-updater toggle
206
+ FbxExporters . EditorTools . ExportSettings . instance . autoUpdaterEnabled = isAutoUpdaterOn ;
204
207
}
205
208
206
209
[ SetUp ]
207
- public virtual void InitializeAutoUpdater ( )
210
+ public virtual void Init ( )
208
211
{
209
212
isAutoUpdaterOn = FbxExporters . EditorTools . ExportSettings . instance . autoUpdaterEnabled ;
210
213
FbxExporters . EditorTools . ExportSettings . instance . autoUpdaterEnabled = true ;
211
214
}
212
215
213
- [ TearDown ]
214
- public virtual void ResetAutoUpdater ( )
215
- {
216
- // Put back the initial setting for the auto-updater toggle
217
- FbxExporters . EditorTools . ExportSettings . instance . autoUpdaterEnabled = isAutoUpdaterOn ;
218
- }
219
216
220
217
/// <summary>
221
218
/// Exports the Objects in selected.
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ public class FbxPrefabAutoUpdaterTest : ExporterTestBase
19
19
string m_prefabPath ;
20
20
21
21
[ SetUp ]
22
- public void Init ( )
22
+ public override void Init ( )
23
23
{
24
+ base . Init ( ) ;
24
25
var capsule = GameObject . CreatePrimitive ( PrimitiveType . Capsule ) ;
25
26
m_fbx = ExportSelection ( capsule ) ;
26
27
m_fbxPath = AssetDatabase . GetAssetPath ( m_fbx ) ;
@@ -226,8 +227,9 @@ public class FbxPrefabAutoUpdaterToggleTest : ExporterTestBase
226
227
{
227
228
bool isAutoUpdaterOn ;
228
229
[ SetUp ]
229
- public void Init ( )
230
+ public override void Init ( )
230
231
{
232
+ base . Init ( ) ;
231
233
// Save the initial setting for the auto updater toggle and disable it for the unit test
232
234
isAutoUpdaterOn = FbxExporters . EditorTools . ExportSettings . instance . autoUpdaterEnabled ;
233
235
FbxExporters . EditorTools . ExportSettings . instance . autoUpdaterEnabled = false ;
Original file line number Diff line number Diff line change @@ -146,7 +146,8 @@ public static void AssertAreDifferent(
146
146
}
147
147
148
148
[ SetUp ]
149
- public void Init ( ) {
149
+ public override void Init ( ) {
150
+ base . Init ( ) ;
150
151
// Create a test hierarchy. It has unique names.
151
152
m_original = CreateHierarchy ( "FbxPrefabTestRoot" ) ;
152
153
m_originalRep = Rep ( m_original ) ;
You can’t perform that action at this time.
0 commit comments