ToString() public method

public ToString ( ) : string
return string
 public void TestNullText() 
 {
     ActiveMQTextMessage nullMessage = new ActiveMQTextMessage();
     SetContent(nullMessage, null);
     Assert.IsNull(nullMessage.Text);
     Assert.IsTrue(nullMessage.ToString().Contains("Text = null"));
 }
 public void TestShortText() 
 {
     string shortText = "Content";
     ActiveMQTextMessage shortMessage = new ActiveMQTextMessage();
     SetContent(shortMessage, shortText);
     Assert.IsTrue(shortMessage.ToString().Contains("Text = " + shortText));
     Assert.IsTrue(shortMessage.Text == shortText);
     
     string longText = "Very very very very veeeeeeery loooooooooooooooooooooooooooooooooong text";
     string longExpectedText = "Very very very very veeeeeeery looooooooooooo...ooooong text";
     ActiveMQTextMessage longMessage = new ActiveMQTextMessage();
     SetContent(longMessage, longText);
     Assert.IsTrue(longMessage.ToString().Contains("Text = " + longExpectedText));
     Assert.IsTrue(longMessage.Text == longText);         
 }