public static void TestActiveFileCollectionSimpleConstructor() { ActiveFileCollection collection = new ActiveFileCollection(new ActiveFile[0]); IDataStore decryptedFileInfo = New <IDataStore>(_testTextPath); IDataStore encryptedFileInfo = New <IDataStore>(_helloWorldAxxPath); ActiveFile activeFile = new ActiveFile(encryptedFileInfo, decryptedFileInfo, new LogOnIdentity("new"), ActiveFileStatus.None, new V1Aes128CryptoFactory().CryptoId); collection.Add(activeFile); Assert.That(collection.Count, Is.EqualTo(1), "There should be one entry in the collection."); foreach (ActiveFile member in collection) { Assert.That(member, Is.EqualTo(activeFile), "The one we added should now be in the collection."); } }
public static void TestActiveFileCollectionSimpleConstructor() { ActiveFileCollection collection = new ActiveFileCollection(); IRuntimeFileInfo decryptedFileInfo = OS.Current.FileInfo(_testTextPath); IRuntimeFileInfo encryptedFileInfo = OS.Current.FileInfo(_helloWorldAxxPath); ActiveFile activeFile = new ActiveFile(encryptedFileInfo, decryptedFileInfo, new AesKey(), ActiveFileStatus.None, null); collection.Add(activeFile); Assert.That(collection.Count, Is.EqualTo(1), "There should be one entry in the collection."); foreach (ActiveFile member in collection) { Assert.That(member, Is.EqualTo(activeFile), "The one we added should now be in the collection."); } }
public static void TestActiveFileCollectionSimpleConstructor() { ActiveFileCollection collection = new ActiveFileCollection(); IRuntimeFileInfo decryptedFileInfo = OS.Current.FileInfo(_testTextPath); IRuntimeFileInfo encryptedFileInfo = OS.Current.FileInfo(_helloWorldAxxPath); ActiveFile activeFile = new ActiveFile(encryptedFileInfo, decryptedFileInfo, new AesKey(), ActiveFileStatus.None, null); collection.Add(activeFile); Assert.That(collection.Count, Is.EqualTo(1), "There should be one entry in the collection."); foreach (ActiveFile member in collection) { Assert.That(member, Is.EqualTo(activeFile), "The one we added should now be in the collection."); } }