コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
		/// <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));
        }
コード例 #3
0
 public override void WriteActualValueTo(MessageWriter writer) => _innerResult.WriteActualValueTo(writer);