Microsoft.Protocols.TestSuites.Common.Common.MergeGlobalConfig C# (CSharp) Method

MergeGlobalConfig() public static method

Merge the properties from the global ptfconfig file.
public static MergeGlobalConfig ( string globalConfigFilename, ITestSite site ) : void
globalConfigFilename string Global ptfconfig filename.
site ITestSite An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context.
return void
        public static void MergeGlobalConfig(string globalConfigFilename, ITestSite site)
        {
            if (string.IsNullOrEmpty(globalConfigFilename))
            {
                site.Log.Add(
                    LogEntryKind.Warning,
                    string.Format(
                    "The common ptfconfig file '{0}' was not loaded since the 'CommonConfigurationFileName' property or its value is not available at the local ptfconfig file.",
                    globalConfigFilename));
            }
            else
            {
                MergeConfigurationFile(globalConfigFilename, site);
            }
        }
Common