Method ToJson
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
ToJson()
Creates a JSON serialized version of this message.
public string ToJson()
Returns
Exceptions
- InvalidOperationException
Thrown if the message class does not have a JsonTypeIDAttribute.
Thrown when one or more properties are missing values.