/// <summary> /// Write the actual value for a failing constraint test to a /// MessageWriter. This override only handles the special message /// used when an exception is expected but none is thrown. /// </summary> /// <param name="writer">The writer on which the actual value is displayed</param> public override void WriteActualValueTo(MessageWriter writer) { if (ActualValue == null) { writer.Write("no exception thrown"); } else { baseResult.WriteActualValueTo(writer); } }
/// <summary> /// Write the generic 'Actual' line for a constraint /// </summary> /// <param name="result">The ConstraintResult for which the actual value is to be written</param> private void WriteActualLine(ConstraintResult result) { Write(Pfx_Actual); result.WriteActualValueTo(this); WriteLine(); //WriteLine(MsgUtils.FormatValue(result.ActualValue)); }
public override void WriteActualValueTo(MessageWriter writer) => _innerResult.WriteActualValueTo(writer);