diff --git a/test/NETCore.Encrypt.Tests/MD5_Tests.cs b/test/NETCore.Encrypt.Tests/MD5_Tests.cs index 5fc6ac3..d62f538 100644 --- a/test/NETCore.Encrypt.Tests/MD5_Tests.cs +++ b/test/NETCore.Encrypt.Tests/MD5_Tests.cs @@ -25,5 +25,16 @@ public void MD5_Error_Test() { Assert.Throws(() => EncryptProvider.Md5(string.Empty)); } + + [Fact(DisplayName = "MD5 with length success test")] + public void MD5_With_Length_Success_Test() + { + var srcString = "Md5 test"; + + var hashed = EncryptProvider.Md5(srcString, MD5Length.L16); + + Assert.NotEmpty(hashed); + Assert.Equal("69c6ecadb32f5492", hashed.ToLower()); + } } }