Skip to content

Commit

Permalink
调整TenPaySignHelperTests的CreatePaySignTest单元测试方法,增加支持自定义传入的appId
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneConan committed Apr 6, 2023
1 parent 3416346 commit 7932959
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void CreatePaySignTest()
TenPayV3_PrivateKey = privateKey
};

var result = TenPaySignHelper.CreatePaySign(timestamp, nonceStr, package, separcWeixinSetting);
var result = TenPaySignHelper.CreatePaySign(appId, timestamp, nonceStr, package, separcWeixinSetting);
Assert.IsNotNull(result);

var exceptedResult = "POmTZCzk7fj+FeSwbU4rNghygFOzwpoaQt9SBW8blDAPZCVJ7wVnDVisx6t1ryyBpB3NmOwiNaT+hHi7YthYZzr0kvL5kWKSnpssyWBofnjqbFWBSV8JaFx7Ia2qnsgdVYALisYjLBr+bj69YXuyWiBxYFx+JylH6wW4w55Rziatoa4rwrdlrpgE2yRTxDu9wSZ4VCdUYSMj2ctyAy2fOiCcP00VGjihJWGCXXjeVm2YQyFZXB7KqGPhncdHaFmJzIvL8SbWKSc36cUKSuHhZ5n+oZVU8Vf+lb/eJibzTWxBIAJbtQplKojG48ukd7QFtRUd3b2EkOjzmeJ26zMlfA==";
Expand All @@ -44,7 +44,7 @@ public void CreatePaySign_ByPrivateKeyTest()
var timestamp = "1414561699";
var nonceStr = "5K8264ILTKCH16CQ2502SI8ZNMTM67VS";

var result = TenPaySignHelper.CreatePaySign(timestamp, nonceStr, package, appId, privateKey);
var result = TenPaySignHelper.CreatePaySign(appId, timestamp, nonceStr, package, appId, privateKey);
Assert.IsNotNull(result);
Console.WriteLine(result);

Expand Down

0 comments on commit 7932959

Please sign in to comment.