feat(wxads): 升级公共组件

This commit is contained in:
Fu Diwei
2022-01-21 09:53:46 +08:00
parent 7205686f71
commit 9b434632d7
10 changed files with 127 additions and 92 deletions

View File

@@ -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);
}
}
}