Exemple #1
0
 public void GetClientFile()
 {
     if (FManager.GetCount() > 0)
     {
         var LFile = FManager.GetClientFile(0);
         Assert.IsNotNull(LFile);
         LFile = null;
         Assert.IsNull(LFile);
     }
 }
        public void EnumClientFiles()
        {
            var LFilesCount  = FClientFileManager.GetCount();
            var LClientFiles = new List <IAppClientFile>();
            var LGuids       = new List <string>();

            for (var i = 0; i < LFilesCount; ++i)
            {
                var LClientFile = FClientFileManager.GetClientFile(i);
                LClientFiles.Add(LClientFile);
                LGuids.Add(LClientFile.GetGUID());
            }
            for (var i = 0; i < LFilesCount; ++i)
            {
                LClientFiles[i].RunCalcForAllReturns();
            }
            for (var i = 0; i < LFilesCount; ++i)
            {
                Assert.AreEqual(LGuids[i], LClientFiles[i].GetGUID());
            }
        }