public static void UnwrapUnsafe_GivenEncryptedInput_ReturnsExpectedResult()
        {
            var result = OracleUnwrapper.UnwrapUnsafe(WrappedExample);

            var cleanExpected = TrimNewlines(ExpectedUnwrappedExample);
            var cleanResult   = TrimNewlines(result);

            Assert.That(cleanResult, Is.EqualTo(cleanExpected));
        }
 public static void UnwrapUnsafe_GivenInputWithIncorrectHash_ThrowsInvalidDataException()
 {
     Assert.That(() => OracleUnwrapper.UnwrapUnsafe(InvalidHashExample), Throws.TypeOf <InvalidDataException>());
 }
 public static void UnwrapUnsafe_GivenNullInput_ThrowsArgumentNullException()
 {
     Assert.That(() => OracleUnwrapper.UnwrapUnsafe(null), Throws.ArgumentNullException);
 }
 public static void UnwrapUnsafe_GivenInvalidInput_ThrowsInvalidDataException()
 {
     Assert.That(() => OracleUnwrapper.UnwrapUnsafe(MissingMagicPrefixExample), Throws.TypeOf <InvalidDataException>());
 }