<commit_before>using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using NUnit.Framework;
using ZptSharp.Config;
using ZptSharp.Util;

namespace ZptSharp.IntegrationTests
{
    [TestFixture,Parallelizable, Category("Integration")]
    public class ZptIntegrationTests
    {
        [Test, Description("For the 'expected rendering' file, rendering the corresponding 'source document' file via ZptSharp should produce the same output.")]
        public async Task Each_output_file_should_render_as_expected([ValueSource(nameof(GetExpectedOutputFiles))] string expectedPath)
        {
            var result = await IntegrationTester.PerformIntegrationTest(expectedPath, model: GetModel(), config: GetConfig());
            Assert.That(result.Actual, Is.EqualTo(result.Expected));
        }

        public static IEnumerable<string> GetExpectedOutputFiles() => TestFiles.GetIntegrationTestExpectedFiles<ZptIntegrationTests>();

        object GetModel()
        {
            return new
            {
                Sequence = new[]
                {
                    new { Name = "Craig", Description = "silly" },
                    new { Name = "The sky", Description = "blue" },
                    new { Name = "ZPT-Sharp model rendering", Description = "working" },
                },
            };
        }<commit_msg>Undo changes to test, restoring to original logic<commit_after>using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using NUnit.Framework;
using ZptSharp.Config;
using ZptSharp.Util;

namespace ZptSharp.IntegrationTests
{
    [TestFixture,Parallelizable, Category("Integration")]
    public class ZptIntegrationTests
    {
        [Test, Description("For the 'expected rendering' file, rendering the corresponding 'source document' file via ZptSharp should produce the same output.")]
        public async Task Each_output_file_should_render_as_expected([ValueSource(nameof(GetExpectedOutputFiles))] string expectedPath)
        {
            var result = await IntegrationTester.PerformIntegrationTest(expectedPath, model: GetModel(), config: GetConfig());
            Assert.That(result, Has.MatchingExpectedAndActualRenderings);
        }

        public static IEnumerable<string> GetExpectedOutputFiles() => TestFiles.GetIntegrationTestExpectedFiles<ZptIntegrationTests>();

        object GetModel()
        {
            return new
            {
                Sequence = new[]
                {
                    new { Name = "Craig", Description = "silly" },
                    new { Name = "The sky", Description = "blue" },
                    new { Name = "ZPT-Sharp model rendering", Description = "working" },
                },
            };
        }
{'fraction_non_alphanumeric': 0.0926654740608229, 'fraction_numerical': 0.0, 'mean_word_length': 2.728, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '975657', 'n_tokens_mistral': 713, 'n_tokens_neox': 683, 'n_words': 173}