C# Class Xunit.ConfigReader_Json

This class is used to read configuration information for a test assembly.
Mostra file Open project: xunit/xunit Class Usage Examples

Public Methods

Method Description
Load ( Stream configStream ) : Xunit.TestAssemblyConfiguration

Loads the test assembly configuration for the given test assembly from a JSON stream. Caller is responsible for opening the stream.

Load ( string assemblyFileName, string configFileName = null ) : Xunit.TestAssemblyConfiguration

Loads the test assembly configuration for the given test assembly.

Private Methods

Method Description
File_OpenRead ( string path ) : Stream
GetFileOpenReadMethod ( ) : MethodInfo
LoadFile ( string configFileName ) : Xunit.TestAssemblyConfiguration

Method Details

Load() public static method

Loads the test assembly configuration for the given test assembly from a JSON stream. Caller is responsible for opening the stream.
public static Load ( Stream configStream ) : Xunit.TestAssemblyConfiguration
configStream Stream Stream containing config for an assembly
return Xunit.TestAssemblyConfiguration

Load() public static method

Loads the test assembly configuration for the given test assembly.
public static Load ( string assemblyFileName, string configFileName = null ) : Xunit.TestAssemblyConfiguration
assemblyFileName string The test assembly.
configFileName string The test assembly configuration file.
return Xunit.TestAssemblyConfiguration