Пример #1
0
        public void CreaterTest()
        {
            string XMLFileName = "FileVerInfo";
            //string XMLFilePath = @"G:\Working\Maintenance\SK3000\UpdatePackage\CU\RemoteUpdatePackage\BranchXY";
            //string XMLFilePath = @"G:\Working\Maintenance\SK3000\UpdatePackage\CU\RemoteUpdatePackage\Trunk";
            //string XMLFilePath = @"G:\Working\SK3000\Cu\InstallPackage\ReleaseFile";
            //string XMLFilePath = @"G:\Working\SK3000\Cu\InstallPackage\ReleaseFile_XY";
            string XMLFilePath = @"G:\Working\SK3000\Cu\InstallPackage\ReleaseFile_Shendun";
            //string XMLFilePath = @"G:\Working\Maintenance\SK3000\CU\CUGenerateInstallationPackage\ReleaseFile_XY - 副本";
            //string XMLFilePath = @"G:\Working\Maintenance\SK3000\CU\CUGenerateInstallationPackage\ReleaseFile_RedStar";
            //string XMLFilePath = @"G:\Working\Maintenance\SK3000\CU\CUGenerateInstallationPackage\ReleaseFile";
            List <SKFileInfo> sKFileInfos = FileOperat.GetSKFileInfoList(XMLFilePath);
            bool OK = FileOperat.CreateSKFileInfoXML(XMLFileName, XMLFilePath, sKFileInfos);

            Assert.AreEqual(sKFileInfos.Count, 1);
        }
Пример #2
0
        public void GetSKFileInfoListTest1()
        {
            List <string> IgnoreFileList = new List <string>();

            IgnoreFileList.Add("用户布防.wav");
            string            XMLFilePath = @"C:\Users\Administrator\Desktop\新建文件夹 (4)";
            List <SKFileInfo> sKFileInfos = FileOperat.GetSKFileInfoList(XMLFilePath, IgnoreFileList);



            string XMLFileName = "FileVerInfo";

            XMLFilePath = @"C:\Users\Administrator\Desktop";

            bool OK = FileOperat.CreateSKFileInfoXML(XMLFileName, XMLFilePath, sKFileInfos);

            Assert.IsTrue(OK);
            //Assert.AreEqual(sKFileInfos.Count, sKFileInfos.Count);
        }