public void should_pass_rsa_check_v2_when_sign_is_self_generated() { //gien Dictionary <string, string> parameters = new Dictionary <string, string> { { "测试Key1", "测试Value1" }, { "测试Key2", "测试Value2" }, { "sign_type", "RSA2" } }; parameters.Add("sign", AlipaySignature.Sign(parameters, TestAccount.Mock.AppPrivateKey, "UTF-8", "RSA2", false)); //when bool result = AlipaySignature.VerifyV2(parameters, TestAccount.Mock.AppPublicKey, "UTF-8", "RSA2", false); //then Assert.AreEqual(result, true); }