public void MessageSizeTestSNS_Empty() { var request = new PublishRequest(); bool tooLarge = BytesHelper.TooLarge(request, 10); Assert.False(tooLarge); }
public void MessageSizeTestSNS_TooManyBytesInBody() { var request = new PublishRequest(); request.Message = "1234567890a"; bool tooLarge = BytesHelper.TooLarge(request, 10); Assert.True(tooLarge); }
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); }