Braintree.Tests.WebhookNotificationTest.Parse_WithInvalidPublicKey C# (CSharp) Метод

Parse_WithInvalidPublicKey() приватный Метод

private Parse_WithInvalidPublicKey ( ) : void
Результат void
        public void Parse_WithInvalidPublicKey()
        {
            Dictionary<string, string> sampleNotification = gateway.WebhookTesting.SampleNotification(WebhookKind.SUBSCRIPTION_WENT_PAST_DUE, "my_id");
            InvalidSignatureException exception = Assert.Throws<InvalidSignatureException>(() => gateway.WebhookNotification.Parse("bad" + sampleNotification["bt_signature"], sampleNotification["bt_payload"]));
            Assert.AreEqual(exception.Message, "no matching public key");
        }