C# Class Xunit.Runner.Reporters.JsonExtentions

显示文件 Open project: xunit/xunit

Public Methods

Method Description
ToJson ( this errorMessage ) : string
ToJson ( this testCollectionStarting, string flowId ) : string
ToJson ( object>.this data ) : string

Private Methods

Method Description
AddValue ( System.StringBuilder sb, string name, object value ) : void
JsonEscape ( string value ) : string
initObject ( string messageName, object message, Type messageType, string flowId = null ) : object>.Dictionary

Method Details

ToJson() public static method

public static ToJson ( this errorMessage ) : string
errorMessage this
return string

ToJson() public static method

public static ToJson ( this testCollectionStarting, string flowId ) : string
testCollectionStarting this
flowId string
return string

ToJson() public static method

public static ToJson ( object>.this data ) : string
data object>.this
return string