public void testIosExceed() { PushPayload payload = new PushPayload(); payload.platform = Platform.all(); payload.audience = Audience.all(); payload.notification = new Notification().setAlert(LONG_TEXT_1); payload.Check(); Debug.WriteLine("Size: " + UTF8Encoding.UTF8.GetBytes(LONG_TEXT_1).Length); Assert.IsTrue(payload.IsIosExceedLength(), "Should exceed - " + UTF8Encoding.UTF8.GetBytes(LONG_TEXT_1).Length); }