public void ToStringShowsMessage()
 {
     const string message = "This is a message";
     ValidationMessage vm = new ValidationMessage(message);
     string toString = vm.ToString();
     Assert.That(toString, Is.StringContaining(message));
 }
 public void MessageSetInConstructor()
 {
     const string message = "This is a validation message";
     ValidationMessage vm = new ValidationMessage(message);
     Assert.That(vm.Message, Is.EqualTo(message));
 }
 public void CopyTo(ValidationMessage[] array, int arrayIndex)
 {
     messages.CopyTo(array, arrayIndex);
 }
 public bool Remove(ValidationMessage item)
 {
     return messages.Remove(item);
 }
 public bool Contains(ValidationMessage item)
 {
     return messages.Contains(item);
 }
 public void Add(ValidationMessage item)
 {
     ArgumentCheck.IsNotNull(item);
     messages.Add(item);
 }
 public bool Remove(ValidationMessage item)
 {
     return(messages.Remove(item));
 }
 public bool Contains(ValidationMessage item)
 {
     return(messages.Contains(item));
 }
 public void Add(ValidationMessage item)
 {
     ArgumentCheck.IsNotNull(item);
     messages.Add(item);
 }