/// <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"); } }
/// <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); }