public void CtorTest() { for (int i = 0; i < 5; i++) { _xbox.Dispose(); _xbox = new Xbox(AssemblyGlobals.Logger); } }
public void Cleanup() { try { // attempt to remove all temporary files var tempFiles = _xbox.FileSystem.GetDirectoryList(XboxFileSystem.TempDirectory); foreach (var file in tempFiles) { _xbox.FileSystem.DeleteFile(file.FullName); } _xbox.FileSystem.DeleteDirectory(XboxFileSystem.TempDirectory); } catch (Exception e) { } _xbox?.Dispose(); AssemblyGlobals.Logger.Level = LogLevel.Trace; }
public void Cleanup() { _xbox?.Dispose(); AssemblyGlobals.Logger.Level = LogLevel.Trace; }
public void Cleanup() { _xbox.FileSystem.DeleteDirectory(XboxFileSystem.TempDirectory, true); _xbox?.Dispose(); AssemblyGlobals.Logger.Level = LogLevel.Trace; }