<commit_before>using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using NPanday.ProjectImporter;
using NPanday.ProjectImporter.Digest;
using NPanday.ProjectImporter.Digest.Model;
using NPanday.ProjectImporter.Validator;
using NUnit.Framework;

namespace NPanday.ProjectImporter.ImporterTests
{
    [TestFixture]
    public class UnsupportedProjectTest
    {
        private String slnFile;
        private String warnMsg = String.Empty;
        private DirectoryInfo UnsupportedProjectSource;
        private DirectoryInfo UnsupportedProjectTarget;

        public UnsupportedProjectTest()
        {
            UnsupportedProjectSource = new DirectoryInfo(FileUtil.GetBaseDirectory() + "\\src\\test\\resource\\UnsupportedProjectAboveSolution");
            UnsupportedProjectTarget = new DirectoryInfo(FileUtil.GetBaseDirectory() + "\\src\\test\\resource\\UnsupportedProjectAboveSolutionCopy");
        }

        [TestFixtureSetUp]
        public void TestSetUp()
        {
            FileUtil.CopyDirectory(UnsupportedProjectSource, UnsupportedProjectTarget);
        }

        [TestFixtureTearDown]
        public void TestTearDown()
        {
            Directory.Delete(UnsupportedProjectTarget.FullName, true);
        }

        [Test]
        public void TestProjectImporterWithNunitAndCheckedTestProject()
        {
            string[] generatedPoms = null;
            try
            {
                slnFile = UnsupportedProjectTarget.FullName + "\\SampleApp\\SampleApp.sln";
                generatedPoms = NPandayImporter.ImportProject(slnFile, "test", "test-plugin", "1.0", "", UncheckedProject, ref warnMsg);
            }
            catch
            {
                Assert.IsNull(generatedPoms);
            }
        }

        public void UncheckedProject(ref ProjectDigest[] projectDigests, ProjectStructureType structureType, string solutionFile, ref string groupId, ref string artifactId, ref string version)
        {
            foreach (ProjectDigest pDigest in projectDigests)
            {
                pDigest.UnitTest = false;
            }
        }
    }
}<commit_msg>update test case to leverage other utilities<commit_after>using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using NPanday.ProjectImporter;
using NPanday.ProjectImporter.Digest;
using NPanday.ProjectImporter.Digest.Model;
using NPanday.ProjectImporter.Validator;
using NUnit.Framework;

namespace NPanday.ProjectImporter.ImporterTests
{
    [TestFixture]
    public class UnsupportedProjectTest
    {
        [TestFixtureSetUp]
        public void TestSetUp()
        {
            NPanday.ProjectImporter.Converter.Algorithms.AbstractPomConverter.UseTestingArtifacts(new List<Artifact.Artifact>());
        }

        [Test]
        public void TestProjectImporterWithNunitAndCheckedTestProject()
        {
            string[] generatedPoms = null;
            try
            {
                string slnFile = Path.Combine(ProjectImporterTestFixture.SampleProjectsPath, "UnsupportedProjectAboveSolution\\SampleApp\\SampleApp.sln");
                string warnMsg = string.Empty;
                generatedPoms = NPandayImporter.ImportProject(slnFile, "test", "test-plugin", "1.0", "", false, ref warnMsg);
            }
            catch
            {
                Assert.IsNull(generatedPoms);
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.08152492668621701, 'fraction_numerical': 0.0011730205278592375, 'mean_word_length': 2.531055900621118, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1799300', 'n_tokens_mistral': 925, 'n_tokens_neox': 889, 'n_words': 166}