public override void WriteActualValueTo(NUnitCtr.MessageWriter writer) { if (invalidMembers.Count == 1) writer.WriteMessageLine(string.Format("The element <{0}> doesn't validate this pattern", invalidMembers[0])); else { writer.WriteMessageLine(string.Format("{0} elements don't validate this pattern:", invalidMembers.Count)); foreach (var invalidMember in invalidMembers) writer.WriteMessageLine(string.Format(" <{0}>", invalidMember)); } }