/// <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)
{
DirectoryInfo dir = actual as DirectoryInfo;
if (dir == null)
base.WriteActualValueTo(writer);
else
{
writer.WriteActualValue(dir);
writer.Write(" with {0} files and {1} directories", files, subdirs);
}
}