Пример #1
0
        public bool Load(string directory, string mask, bool includeVariations)
        {
            DirectoryFiles lDirectoryFiles = new DirectoryFiles(directory, mask, false);

            foreach (string lFile in lDirectoryFiles)
            {
                if (!Load(new SGFCollection(lFile), includeVariations))
                {
                    return(false);
                }
            }

            return(true);
        }
Пример #2
0
        public bool Load(string directory, string mask, bool continueOnError)
        {
            DirectoryFiles lDirectoryFiles = new DirectoryFiles(directory, mask, false);

            foreach (string lFile in lDirectoryFiles)
            {
                if (!Load(lFile, continueOnError))
                {
                    return(false);
                }
            }

            return(true);
        }
        public static bool ExecuteTests(string directory, string mask, bool subDirectories)
        {
            DirectoryFiles lDirectoryFiles = new DirectoryFiles(directory, mask, subDirectories);

            bool lAllOk = true;

            foreach (string lFile in lDirectoryFiles)
            {
                if (!ExecuteTest(lFile, Path.GetFullPath(lFile)))
                {
                    lAllOk = false;
                }
            }

            return(lAllOk);
        }
Пример #4
0
        public bool Load(string directory, string mask, bool continueOnError)
        {
            DirectoryFiles lDirectoryFiles = new DirectoryFiles(directory, mask, false);

            foreach (string lFile in lDirectoryFiles)
                if (!Load(lFile, continueOnError))
                    return false;

            return true;
        }
Пример #5
0
        public bool Load(string directory, string mask, bool includeVariations)
        {
            DirectoryFiles lDirectoryFiles = new DirectoryFiles(directory, mask, false);

            foreach (string lFile in lDirectoryFiles)
                if (!Load(new SGFCollection(lFile), includeVariations))
                    return false;

            return true;
        }
Пример #6
0
        public static bool ExecuteTests(string directory, string mask, bool subDirectories)
        {
            DirectoryFiles lDirectoryFiles = new DirectoryFiles(directory, mask, subDirectories);

            bool lAllOk = true;

            foreach (string lFile in lDirectoryFiles)
                if (!ExecuteTest(lFile, Path.GetFullPath(lFile)))
                    lAllOk = false;

            return lAllOk;
        }