public void CheckMessageText() { string messageText = "Test text."; bool success = chats.CheckMessageText(ref messageText, ref message); while (messageText.Length < 510) { messageText += messageText; } bool veryLongText = chats.CheckMessageText(ref messageText, ref message); messageText = ""; bool emptyText = chats.CheckMessageText(ref messageText, ref message); Assert.AreEqual(success, true); Assert.AreEqual(veryLongText, false); Assert.AreEqual(emptyText, false); }