예제 #1
0
 /// <summary>
 /// Write a description of this constraint to a MessageWriter
 /// </summary>
 /// <param name="writer">The writer on which the description is displayed</param>
 /// <exception cref="ArgumentNullException">if the message writer is null.</exception>
 public override void WriteDescriptionTo(MessageWriter writer)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     writer.WritePredicate(Resources.NoItem);
     BaseConstraint.WriteDescriptionTo(writer);
 }
예제 #2
0
        /// <summary>
        /// Write the constraint description to a MessageWriter
        /// </summary>
        /// <exception cref="ArgumentNullException">if the message writer is null.</exception>
        /// <param name="writer">The writer on which the description is displayed</param>
        public override void WriteDescriptionTo(MessageWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }

            writer.WritePredicate(string.Format(Resources.PropertyName_1, _name));
            BaseConstraint.WriteDescriptionTo(writer);
        }