public void DecryptFile_ReadsEncryptedPlainText() { //Arrange string testContent = "Oooogabooga!"; File.WriteAllText(@".\DecryptFile_ReadsEncryptedPlainText", testContent); EncryptionService encryptionService = new EncryptionService(_keyInfo, _consolePrinter); encryptionService.EncryptFile(@".\DecryptFile_ReadsEncryptedPlainText"); bool expected = true; //Act encryptionService.DecryptFile(@".\DecryptFile_ReadsEncryptedPlainText"); bool actual = testContent == File.ReadAllText(@".\DecryptFile_ReadsEncryptedPlainText"); //Assert Assert.AreEqual(expected, actual); }