<commit_before>﻿using NUnit.Framework;
using NBi.NUnit.Runtime;
using NBi.Xml;

namespace NBi.Testing.Acceptance
{
    /// <summary>
    /// This class is the only one in the namespace "NBi.Testing.Acceptance" with a TestFixture.
    /// NUnit (more specifically the SimpleTestRunner created in method Run of class TestSuiteRunner) 
    /// will load this class as the entry point for Acceptance Test Suites.
    /// </summary>
    [TestFixture]
    public class RuntimeOverrider
    {
        
        //This class overrides the search for TestSuiteDefinitionFile
        //The filename is given by the TestCase here under
        public class TestSuiteOverrider : TestSuite
        {
            
            public TestSuiteOverrider(string filename) : base()
            {
                TestSuiteFinder = new TestSuiteFinderOverrider(filename);
            }
            
            internal class TestSuiteFinderOverrider : TestSuiteFinder
            {
                private readonly string filename;
                public TestSuiteFinderOverrider(string filename)
                {
                    this.filename = filename;
                }
                
                protected internal override string Find()
                {
                    return @"Acceptance\Resources\" + filename;
                }
            }

            [Ignore]
            public override void ExecuteTestCases(TestXml test)
            {
                base.ExecuteTestCases(test);
            }
        }
        
        //By Acceptance Test Suite (file) create a Test Case
        [Test]
        //[TestCase("QueryEqualToCsv.xml")]
        //[TestCase("QueryEqualToQuery.xml")]
        //[TestCase("QueryEqualToResultSet.xml")]
        //[TestCase("QueryEqualToResultSetWithNull.xml")]
        //[TestCase("Ordered.xml")]
        //[TestCase("Count.xml")]
        //[TestCase("Contains.xml")]
        //[TestCase("fasterThan.xml")]
        //[TestCase("SyntacticallyCorrect.xml")]
        [TestCase("Exists.xml")]
        public void RunTestSuite(string filename)
        {
            var t = new TestSuiteOverrider(filename);
            
            //First retrieve the NUnit TestCases with base class (NBi.NUnit.Runtime)
            //These NUnit TestCases are defined in the Test Suite file
            var tests = t.GetTestCases();

            //Execute the NUnit TestCases one by one
            foreach (var testCaseData in tests)
                t.ExecuteTestCases((TestXml)testCaseData.Arguments[0]);
            
        }
    }
}<commit_msg>Reactivate all acceptance tests<commit_after>﻿using NUnit.Framework;
using NBi.NUnit.Runtime;
using NBi.Xml;

namespace NBi.Testing.Acceptance
{
    /// <summary>
    /// This class is the only one in the namespace "NBi.Testing.Acceptance" with a TestFixture.
    /// NUnit (more specifically the SimpleTestRunner created in method Run of class TestSuiteRunner) 
    /// will load this class as the entry point for Acceptance Test Suites.
    /// </summary>
    [TestFixture]
    public class RuntimeOverrider
    {
        
        //This class overrides the search for TestSuiteDefinitionFile
        //The filename is given by the TestCase here under
        public class TestSuiteOverrider : TestSuite
        {
            
            public TestSuiteOverrider(string filename) : base()
            {
                TestSuiteFinder = new TestSuiteFinderOverrider(filename);
            }
            
            internal class TestSuiteFinderOverrider : TestSuiteFinder
            {
                private readonly string filename;
                public TestSuiteFinderOverrider(string filename)
                {
                    this.filename = filename;
                }
                
                protected internal override string Find()
                {
                    return @"Acceptance\Resources\" + filename;
                }
            }

            [Ignore]
            public override void ExecuteTestCases(TestXml test)
            {
                base.ExecuteTestCases(test);
            }
        }
        
        //By Acceptance Test Suite (file) create a Test Case
        [Test]
        [TestCase("QueryEqualToCsv.xml")]
        [TestCase("QueryEqualToQuery.xml")]
        [TestCase("QueryEqualToResultSet.xml")]
        [TestCase("QueryEqualToResultSetWithNull.xml")]
        [TestCase("Ordered.xml")]
        [TestCase("Count.xml")]
        [TestCase("Contains.xml")]
        [TestCase("fasterThan.xml")]
        [TestCase("SyntacticallyCorrect.xml")]
        [TestCase("Exists.xml")]
        public void RunTestSuite(string filename)
        {
            var t = new TestSuiteOverrider(filename);
            
            //First retrieve the NUnit TestCases with base class (NBi.NUnit.Runtime)
            //These NUnit TestCases are defined in the Test Suite file
            var tests = t.GetTestCases();

            //Execute the NUnit TestCases one by one
            foreach (var testCaseData in tests)
                t.ExecuteTestCases((TestXml)testCaseData.Arguments[0]);
            
        }
    }
}
{'fraction_non_alphanumeric': 0.08407940833008953, 'fraction_numerical': 0.00038925652004671076, 'mean_word_length': 1.7161733615221988, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 20}, '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': '1357082', 'n_tokens_mistral': 1278, 'n_tokens_neox': 1258, 'n_words': 341}