Beispiel #1
0
        public void MessageSizeTestSNS_Empty()
        {
            var  request  = new PublishRequest();
            bool tooLarge = BytesHelper.TooLarge(request, 10);

            Assert.False(tooLarge);
        }
Beispiel #2
0
        public void MessageSizeTestSNS_TooManyBytesInBody()
        {
            var request = new PublishRequest();

            request.Message = "1234567890a";
            bool tooLarge = BytesHelper.TooLarge(request, 10);

            Assert.True(tooLarge);
        }
Beispiel #3
0
        public void MessageSizeTestSNS_TooLargeMessageAttributes()
        {
            var request = new PublishRequest();

            request.Message = null;
            request.MessageAttributes.Add("12345", new MessageAttributeValue {
                DataType = "String", StringValue = "67890a"
            });
            bool tooLarge = BytesHelper.TooLarge(request, 10);

            Assert.True(tooLarge);
        }