예제 #1
0
        /// <summary>
        /// Verify the order of elements in BurnManifest.XML
        /// </summary>
        /// <param name="embededResourcesDirectoryPath">Output folder where all the embeded resources are</param>
        /// <param name="elementName">Elements to look for.</param>
        /// <param name="idAttributeName">The attribute to use as an Id for the elements</param>
        /// <param name="expectedOrderedValueList">Expected ordered list of the values of the id attribute.</param>
        public static void VerifyBurnManifestElementOrder(string embededResourcesDirectoryPath, string elementName, string idAttributeName, string[] expectedOrderedValueList)
        {
            string      burnManifestXPath = string.Format(@"//burn:{0}", elementName);
            XmlNodeList burnManifestNodes = BundleTests.QueryBurnManifest(embededResourcesDirectoryPath, burnManifestXPath);

            BundleTests.VerifyElementOrder(burnManifestNodes, idAttributeName, expectedOrderedValueList);
        }
예제 #2
0
        /// <summary>
        /// Verify MsiPackage elements appear in a specific order
        /// </summary>
        /// <param name="embededResourcesDirectoryPath">Output folder where all the embeded resources are.</param>
        /// <param name="packageNames">Names of the MsiPackage elements in order.</param>
        public static void VerifyMsiPackageOrder(string embededResourcesDirectoryPath, params string[] packageNames)
        {
            string      burnManifestXPath = @"//burn:MsiPackage |//burn:MspPackage |//burn:MsuPackage |//burn:ExePackage";
            XmlNodeList burnManifestNodes = BundleTests.QueryBurnManifest(embededResourcesDirectoryPath, burnManifestXPath);

            BundleTests.VerifyElementOrder(burnManifestNodes, "FileName", packageNames);
        }