public static void TestRemoveRecentFile() { IRuntimeFileInfo encryptedFileInfo = OS.Current.FileInfo(_encryptedFile1); IRuntimeFileInfo decryptedFileInfo = OS.Current.FileInfo(_decryptedFile1); AesKey key = new AesKey(); ActiveFile activeFile = new ActiveFile(encryptedFileInfo, decryptedFileInfo, key, ActiveFileStatus.AssumedOpenAndDecrypted | ActiveFileStatus.NotShareable, null); _fileSystemState.Add(activeFile); _fileSystemState.Save(); ActiveFile beforeRemoval = _fileSystemState.FindEncryptedPath(encryptedFileInfo.FullName); Assert.That(beforeRemoval, Is.Not.Null, "Before being removed, the ActiveFile should be possible to find."); _fileSystemState.RemoveRecentFiles(new string[] { encryptedFileInfo.FullName }, new ProgressContext()); ActiveFile afterRemoval = _fileSystemState.FindEncryptedPath(encryptedFileInfo.FullName); Assert.That(afterRemoval, Is.Null, "After being removed, the ActiveFile should not be possible to find."); }