コード例 #1
0
        private void CopyResultsToCategories()
        {
            foreach (string thisCategory in currentTest.TestCategoryMemberships)
            {
                try
                {
                    Foundation.CopyCompletely(currentTest.ArtifactsDirectory, currentArtifactsDirectory + Path.DirectorySeparatorChar + thisCategory + Path.DirectorySeparatorChar + currentTest.PrefixedName);
                }
                catch (Exception loggedException)
                {
                    Console.WriteLine(Foundation.DepictException(loggedException));
                }
            }

            try
            {
                Foundation.CopyCompletely(currentTest.ArtifactsDirectory, currentArtifactsDirectory + Path.DirectorySeparatorChar + currentTest.OverallStatus.ToString() + Path.DirectorySeparatorChar + currentTest.PrefixedName);
            }
            catch (Exception loggedException)
            {
                Console.WriteLine(Foundation.DepictException(loggedException));
            }

            try
            {
                Foundation.CopyCompletely(currentTest.ArtifactsDirectory, currentArtifactsDirectory + Path.DirectorySeparatorChar + currentTest.Priority.ToString() + Path.DirectorySeparatorChar + currentTest.PrefixedName);
            }
            catch (Exception loggedException)
            {
                Console.WriteLine(Foundation.DepictException(loggedException));
            }

            try
            {
                Foundation.CopyCompletely(currentTest.ArtifactsDirectory, currentArtifactsDirectory + Path.DirectorySeparatorChar + FOLDER_FOR_ALL_TESTS + Path.DirectorySeparatorChar + currentTest.PrefixedName);
            }
            catch (Exception loggedException)
            {
                Console.WriteLine(Foundation.DepictException(loggedException));
            }

            Directory.Delete(currentTest.ArtifactsDirectory, true);
        }