Interface IFormattableValue
- Namespace
- CSF.Screenplay.Reporting
- Assembly
- CSF.Screenplay.Abstractions.dll
An object which has its own functionality for generating a human-readable representation of itself for a Screenplay report.
public interface IFormattableValue
Remarks
Implement this interface in your own types in order to provide a custom representation of the object when it is included in a Screenplay report. The FormatForReport() method should be used to create a human-readable string which represents the object in the report text. This interface is a part of the mechanism for formatting values in reports in Screenplay.
Methods
FormatForReport()
Gets a human-readable formatted string which represents the current object instance, suitable to be used in a Screenplay report.
string FormatForReport()
Returns
- string
A formatted string which represents the current instance.