mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 18:48:10 +08:00
feat(wxads): 升级公共组件
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Xunit;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Ads.UnitTests
|
||||
{
|
||||
public class TestCase_HashUtilityTests
|
||||
{
|
||||
[Fact(DisplayName = "测试用例:MD5 信息摘要")]
|
||||
public void TestMD5Hash()
|
||||
{
|
||||
string rawData = "spidbff89d5138160943040012345678901234567890uFolxxiZbrZ/PRbyen5uK5D1kgIB2yHyDsfDGxxgeG";
|
||||
|
||||
string actualHash = Utilities.MD5Utility.Hash(rawData);
|
||||
string expectedHash = "32c03e8fcdb08e653e42805e302f70ed";
|
||||
|
||||
Assert.Equal(expectedHash, actualHash, ignoreCase: true);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user