public static Load ( Stream configStream ) : Xunit.TestAssemblyConfiguration | ||
configStream | Stream | Stream containing config for an assembly |
리턴 | Xunit.TestAssemblyConfiguration |
/// <summary> /// Loads the test assembly configuration for the given test assembly. /// </summary> /// <param name="assemblyFileName">The test assembly.</param> /// <param name="configFileName">The test assembly configuration file.</param> /// <returns>The test assembly configuration.</returns> public static TestAssemblyConfiguration Load(string assemblyFileName, string configFileName = null) { return(ConfigReader_Json.Load(assemblyFileName, configFileName) #if NET35 || NET452 ?? ConfigReader_Configuration.Load(assemblyFileName, configFileName) #endif ?? new TestAssemblyConfiguration()); }
/// <summary> /// Loads the test assembly configuration for the given test assembly from a JSON stream. Caller is responsible for opening the stream. /// </summary> /// <param name="configStream">Stream containing config for an assembly</param> /// <returns>The test assembly configuration.</returns> public static TestAssemblyConfiguration Load(Stream configStream) { return(ConfigReader_Json.Load(configStream)); }