コード例 #1
0
        /// <summary>
        /// Write description of this constraint
        /// </summary>
        /// <param name="writer">The MessageWriter to write to</param>
        public override void WriteDescriptionTo(MessageWriter writer)
        {
            writer.WriteExpectedValue(expected);

            if (comparer.Tolerance != null && !comparer.Tolerance.IsEmpty)
            {
                writer.WriteConnector("+/-");
                writer.WriteExpectedValue(comparer.Tolerance.Value);
            }

            if (comparer.IgnoreCase)
            {
                writer.WriteModifier("ignoring case");
            }
        }
コード例 #2
0
		/// <summary>
		/// Write a description for this contraint to a MessageWriter
		/// </summary>
		/// <param name="writer">The MessageWriter to receive the description</param>
		public override void WriteDescriptionTo(MessageWriter writer)
        {
            left.WriteDescriptionTo(writer);
            writer.WriteConnector("and");
            right.WriteDescriptionTo(writer);
        }
コード例 #3
0
 /// <summary>
 /// Write a description for this contraint to a MessageWriter
 /// </summary>
 /// <param name="writer">The MessageWriter to receive the description</param>
 public override void WriteDescriptionTo(MessageWriter writer)
 {
     left.WriteDescriptionTo(writer);
     writer.WriteConnector("and");
     right.WriteDescriptionTo(writer);
 }