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

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

private Parse_AllowsAllValidChars ( ) : void
Результат void
        public void Parse_AllowsAllValidChars()
        {
            Dictionary<string, string> sampleNotification = gateway.WebhookTesting.SampleNotification(WebhookKind.SUBSCRIPTION_WENT_PAST_DUE, "my_id");
            InvalidSignatureException exception = Assert.Throws<InvalidSignatureException>(() => gateway.WebhookNotification.Parse(sampleNotification["bt_signature"], "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+=/\n"));
            Assert.AreEqual(exception.Message, "signature does not match payload - one has been modified");
        }