Skip to content

Commit 538c39e

Browse files
committed
Test fix
1 parent 1d1b654 commit 538c39e

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/Tests/SmartStore.Services.Tests/Security/EncryptionServiceTests.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ public class EncryptionServiceTests : ServiceTest
1616
{
1717
_securitySettings = new SecuritySettings()
1818
{
19-
EncryptionKey = "273ece6f97dd844d"
19+
//EncryptionKey = "273ece6f97dd844d",
20+
EncryptionKey = "3742404997253102"
2021
};
2122
_encryptionService = new EncryptionService(_securitySettings);
2223
}
@@ -39,5 +40,19 @@ public void Can_encrypt_and_decrypt()
3940
var decryptedPassword = _encryptionService.DecryptText(encryptedPassword);
4041
decryptedPassword.ShouldEqual(password);
4142
}
43+
44+
[Test]
45+
public void Can_encrypt_and_decrypt2()
46+
{
47+
var test = "3345786499234591";
48+
49+
var encrypted = _encryptionService.EncryptText(test);
50+
var decrypted = _encryptionService.DecryptText(encrypted);
51+
52+
decrypted.ShouldEqual(test);
53+
54+
encrypted = "zY0jkmIwNfU=";
55+
decrypted = _encryptionService.DecryptText(encrypted);
56+
}
4257
}
4358
}

0 commit comments

Comments
 (0)