AWSSDK_DotNet35.UnitTests.SNSMessageUtilityTests.NotificationFormatTest C# (CSharp) Method

NotificationFormatTest() public method

public NotificationFormatTest ( ) : void
return void
        public void NotificationFormatTest()
        {
            var message = Message.ParseMessage(NOTIFICATION_EXAMPLE);

            Assert.AreEqual(Message.MESSAGE_TYPE_NOTIFICATION, message.Type);
            Assert.AreEqual("82833b5c-8d5d-56d0-b0e1-7511f8253eb8", message.MessageId);
            Assert.AreEqual("arn:aws:sns:us-east-1:246796806071:snsNetTest", message.TopicArn);
            Assert.AreEqual("Greetings", message.Subject);
            Assert.AreEqual("Hello\r\nworld!", message.MessageText);
            Assert.AreEqual(2015, message.Timestamp.Year);
            Assert.AreEqual("1", message.SignatureVersion);
            Assert.AreEqual("e+khMfZriwAOTkF0OVm3tmdVq9eY6s5Bj6rXZty4B2TYssx7SSSBpvsDCiDuzgeHe++MNsGLDDT+5OpGEFBqCcd/K7iXhofz+KabMEtvM2Ku3aXcFixjOCAY1BF8hH6zU6nKzOy+m7K4UIoVqIOOhqsLWoXNFWgwQseBol1pFQ/MRi9UH84/WGdU8//dH+1/zjLxCud8Lg1vY9Yi/jxMU1HVpZ2JuvzJBdNBFJWc/VYAiw8K1r/J+dxAiLr87P96MgUqyg1wWxYe00HaEXGtjIctCNcd92s3pngOOeGvPYGaTIZEbYhSf2leMYd+CXujUHRqozru5K0Zp+l99fUNTg==", message.Signature);
            Assert.AreEqual("https://sns.us-east-1.amazonaws.com/SimpleNotificationService-d6d679a1d18e95c2f9ffcf11f4f9e198.pem", message.SigningCertURL);
            Assert.AreEqual("https://sns.us-east-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-east-1:246796806071:snsNetTest:228cc6c9-dcd8-4c92-9f3a-77f55176b9e3", message.UnsubscribeURL);

            Assert.IsTrue(message.IsMessageSignatureValid());
        }