MergeSHOULDMAYConfig() public static method

Merge the properties from the SHOULD/MAY ptfconfig file.
public static MergeSHOULDMAYConfig ( ITestSite site ) : void
site ITestSite An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context.
return void
Example #1
0
        /// <summary>
        /// Merge common configuration and SHOULD/MAY configuration files.
        /// </summary>
        /// <param name="site">An instance of interface ITestSite which provides logging, assertions, and adapters for test code onto its execution context.</param>
        public static void MergeConfiguration(ITestSite site)
        {
            // Get the name of common configuration file.
            string commonConfigFileName = Common.GetConfigurationPropertyValue("CommonConfigurationFileName", site);

            // Merge the common configuration.
            Common.MergeGlobalConfig(commonConfigFileName, site);

            // Merge the SHOULD/MAY configuration.
            Common.MergeSHOULDMAYConfig(site);
        }