Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-s committed Feb 22, 2021
1 parent 0590d67 commit eb4c86a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QnapBackupDecryptor.Core.Tests/DecryptorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ public void OpenSSLDecrypt_Text()
{
// Arrange
var encryptedFile = new FileInfo(Path.Combine("TestFiles", "encrypted.txt"));
var decryptedFile = new FileInfo(Path.Combine("TestFiles", "plaintext.txt"));
var outputFile = new FileInfo(Path.Combine("TestFiles", "decrypted.txt"));

// Act
var passwordBytes = Encoding.UTF8.GetBytes(PASSWORD);
var sslDecrypt = OpenSsl.Decrypt(encryptedFile, passwordBytes, decryptedFile);
var sslDecrypt = OpenSsl.Decrypt(encryptedFile, passwordBytes, outputFile);

// Assert
var decryptedText = File.ReadAllLines(sslDecrypt.Data.FullName);
Expand Down

0 comments on commit eb4c86a

Please sign in to comment.