public void Setup() { Assert.That(Application.isPlaying, "ZenjectIntegrationTestFixture is meant to be used for play mode tests only. Please ensure your test file '{0}' is outside of the editor folder and try again.", GetType()); ZenjectTestUtil.DestroyEverythingExceptTestRunner(true); StaticContext.Clear(); }
void DestroyEverythingInternal(bool immediate) { if (_sceneContext != null) { // We need to use DestroyImmediate so that all the IDisposable's etc get processed immediately before // next test runs if (immediate) { GameObject.DestroyImmediate(_sceneContext.gameObject); } else { GameObject.Destroy(_sceneContext.gameObject); } _sceneContext = null; } ZenjectTestUtil.DestroyEverythingExceptTestRunner(immediate); StaticContext.Clear(); }
public virtual void SetUp() { StaticContext.Clear(); SetMemberDefaults(); }
public virtual void Teardown() { ZenjectTestUtil.DestroyEverythingExceptTestRunner(true); StaticContext.Clear(); SetMemberDefaults(); }
public virtual void Teardown() { StaticContext.Clear(); }
public virtual void SetUp() { StaticContext.Clear(); _hasLoadedScene = false; }