test(wxapi): 增加 AES-CBC 解密的单元测试用例

This commit is contained in:
Fu Diwei
2021-10-18 17:31:57 +08:00
parent b6c9d9885a
commit bc80487dd5
6 changed files with 39 additions and 23 deletions

View File

@@ -16,9 +16,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Ads.UnitTests
string rawData = "spidbff89d5138160943040012345678901234567890uFolxxiZbrZ/PRbyen5uK5D1kgIB2yHyDsfDGxxgeG";
string actualHash = Security.MD5Utility.Hash(rawData);
string expectdHash = "32c03e8fcdb08e653e42805e302f70ed";
string expectedHash = "32c03e8fcdb08e653e42805e302f70ed";
Assert.Equal(expectdHash, actualHash, ignoreCase: true);
Assert.Equal(expectedHash, actualHash, ignoreCase: true);
}
}
}