mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-29 09:54:44 +08:00
feat(wxads): 导入微信广告平台 API 客户端项目
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Ads.UnitTests
|
||||
{
|
||||
public class WechatAdsSecurityTests
|
||||
{
|
||||
[Fact(DisplayName = "信息摘要(MD5)")]
|
||||
public void Md5HashTest()
|
||||
{
|
||||
string rawData = "spidbff89d5138160943040012345678901234567890uFolxxiZbrZ/PRbyen5uK5D1kgIB2yHyDsfDGxxgeG";
|
||||
|
||||
string actualHash = Security.MD5Utility.Hash(rawData);
|
||||
string expectdHash = "32c03e8fcdb08e653e42805e302f70ed";
|
||||
|
||||
Assert.Equal(expectdHash, actualHash, ignoreCase: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user