Method ToJson
- Namespace
- Xunit.Runner.Common
- Assembly
- xunit.v3.runner.common.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.