public void AfterTest(ITest details) { Console.WriteLine("----- Beginning Duality Editor environment teardown -----"); // Remove NUnit Console logs Logs.RemoveGlobalOutput(this.consoleLogOutput); this.consoleLogOutput = null; if (this.dummyWindow != null) { ContentProvider.ClearContent(); this.dummyWindow.Dispose(); this.dummyWindow = null; } DualityEditorApp.Terminate(false); Environment.CurrentDirectory = this.oldEnvDir; Console.WriteLine("----- Duality Editor environment teardown complete -----"); }
public void AfterTest(TestDetails details) { Console.WriteLine("----- Beginning Duality environment teardown -----"); // Remove NUnit Console logs Log.Game.RemoveOutput(this.consoleLogOutput); Log.Core.RemoveOutput(this.consoleLogOutput); Log.Editor.RemoveOutput(this.consoleLogOutput); this.consoleLogOutput = null; if (this.dummyWindow != null) { ContentProvider.ClearContent(); ContentProvider.DisposeDefaultContent(); this.dummyWindow.Dispose(); this.dummyWindow = null; } DualityApp.Terminate(); Environment.CurrentDirectory = this.oldEnvDir; Console.WriteLine("----- Duality environment teardown complete -----"); }