Ejemplo n.º 1
0
        public void AesCryptography_ShouldEncryptInputAsExpected_WhenInputIsValid()
        {
            // Arrange
            const string valueToEncrypt = "encrypt";

            // Act
            string encryptedValue = CUT.Encrypt(valueToEncrypt);
            string decryptedValue = CUT.Decrypt(encryptedValue);

            // Assert
            encryptedValue.ShouldNotBe(valueToEncrypt);
            decryptedValue.ShouldBe(valueToEncrypt);

            // Print
            WriteLine(encryptedValue);
        }