public void TestEncryptionBoundaryFileEncryptEmptyString() { const string toEncryptFile = "encryption_test_commonlibrary.txt"; FileInfo toEncryptFileInfo = ConfigFileLocator.GetFromAppConfigLocation(toEncryptFile); EncryptionUtil.EncryptFile(toEncryptFileInfo, ""); }
public void TestEncryptFile() { const string toEncryptFile = "encryption_test_commonlibrary.txt"; const string encryptedFile = "post-encryption_test_commonlibrary.txt"; FileInfo toEncryptFileInfo = ConfigFileLocator.GetFromAppConfigLocation(toEncryptFile); Assert.NotNull(toEncryptFileInfo); FileInfo encryptedFileInfo = new FileInfo(toEncryptFileInfo.DirectoryName + @"\" + encryptedFile); EncryptionUtil.EncryptFile(toEncryptFileInfo, encryptedFileInfo.FullName); Assert.IsTrue(encryptedFileInfo.Exists); }
public void TestEncryptionBoundaryFileEncryptNullFile() { EncryptionUtil.EncryptFile(null, ""); }