Exemplo n.º 1
0
 /// <summary>
 /// Write the actual value for a failing constraint test to a
 /// MessageWriter. The default implementation simply writes
 /// the raw value of actual, leaving it to the writer to
 /// perform any formatting.
 /// </summary>
 /// <param name="writer">The writer on which the actual value is displayed</param>
 public override void WriteActualValueTo(MessageWriter writer)
 {
     writer.WriteActualValue(_actual);
     writer.WriteLine();
     writer.Write(Pfx_Specific);
     _failing.WriteActualValueTo(writer);
 }
Exemplo n.º 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));
 }
Exemplo n.º 3
0
 public override void WriteActualValueTo(MessageWriter writer)
 {
     if (_ex == null)
     {
         _constraintOverDeserialized.WriteActualValueTo(writer);
         writer.WriteActualConnector();
         writer.WriteValue(ActualValue);
     }
     else
     {
         writer.WritePredicate("Could not serialize/deserialize object because");
         writer.WriteValue(_ex.Message);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Write the actual value for a failing constraint test to a
 /// MessageWriter. The default implementation simply writes
 /// the raw value of actual, leaving it to the writer to
 /// perform any formatting.
 /// </summary>
 /// <param name="writer">The writer on which the actual value is displayed</param>
 public override void WriteActualValueTo(MessageWriter writer)
 {
     if (this.IsSuccess)
     {
         base.WriteActualValueTo(writer);
     }
     else if (!leftResult.IsSuccess)
     {
         leftResult.WriteActualValueTo(writer);
     }
     else
     {
         rightResult.WriteActualValueTo(writer);
     }
 }
 public override void WriteActualValueTo(MessageWriter writer)
 {
     representedAs(writer);
     _result.WriteActualValueTo(writer);
 }
Exemplo n.º 6
0
 public override void WriteActualValueTo(MessageWriter writer)
 {
     _result.WriteActualValueTo(writer);
     writer.WriteActualConnector();
     writer.WriteActualValue(_collection.Cast <object>().ToArray());
 }
Exemplo n.º 7
0
 public override void WriteActualValueTo(MessageWriter writer)
 {
     _result.WriteActualValueTo(writer);
 }