public void testGlobalExceed() { PushPayload payload = new PushPayload(); payload.platform = Platform.all(); payload.audience = Audience.all(); payload.message = Message.content(LONG_TEXT_2); payload.Check(); Debug.WriteLine("Size: " + UTF8Encoding.UTF8.GetBytes(LONG_TEXT_2).Length); Assert.IsTrue(payload.IsGlobalExceedLength(), "Should exceed - " + UTF8Encoding.UTF8.GetBytes(LONG_TEXT_2).Length); }