Constraint.WriteMessageTo(MessageWriter) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Write the failure message to the MessageWriter provided as an argument. The default implementation simply passes the constraint and the actual value to the writer, which then displays the constraint description and the value. Constraints that need to provide additional details, such as where the error occured can override this.
public virtual void WriteMessageTo (NUnit.Framework.Constraints.MessageWriter writer);
abstract member WriteMessageTo : NUnit.Framework.Constraints.MessageWriter -> unit
override this.WriteMessageTo : NUnit.Framework.Constraints.MessageWriter -> unit
Parameters
- writer
- MessageWriter
The MessageWriter on which to display the message