public static void TestDecryptedFilesInWatchedFolders() { DateTime utcNow = OS.Current.UtcNow; FakeRuntimeFileInfo.AddFolder(_documentsFolder); FakeRuntimeFileInfo.AddFile(_encryptedFile1, utcNow, utcNow, utcNow, Stream.Null); FakeRuntimeFileInfo.AddFile(_decryptedFile1, utcNow, utcNow, utcNow, Stream.Null); FakeRuntimeFileInfo.AddFolder(_underDocumentsFolder); FakeRuntimeFileInfo.AddFile(_encryptedFile11, utcNow, utcNow, utcNow, Stream.Null); FakeRuntimeFileInfo.AddFile(_decryptedFile11, utcNow, utcNow, utcNow, Stream.Null); _fileSystemState.AddWatchedFolder(new WatchedFolder(_underDocumentsFolder)); IEnumerable <IRuntimeFileInfo> decryptedFiles = _fileSystemState.DecryptedFilesInWatchedFolders(); Assert.That(decryptedFiles.Count(), Is.EqualTo(1), "There should be exactly one decrypted file here."); Assert.That(decryptedFiles.First().FullName, Is.EqualTo(_decryptedFile11), "This is the file that is decrypted here."); }