<commit_before>﻿using Duplicati.Library.Modules.Builtin;
using Duplicati.Library.Modules.Builtin.ResultSerialization;
using NUnit.Framework;

namespace Duplicati.UnitTest
{
    [TestFixture]
    public class ResultFormatSerializerProviderTest
    {
        [Test]
        public void TestGetSerializerGivenDuplicatiReturnsDuplicatiSerializer()
        {
            IResultFormatSerializer serializer = ResultFormatSerializerProvider.GetSerializer(ResultExportFormat.Duplicati);
            Assert.AreEqual(typeof(DuplicatiFormatSerializer), serializer.GetType());
        }

        [Test]
        public void TestGetSerializerGivenJsonReturnsJsonSerializer()
        {
            IResultFormatSerializer serializer = ResultFormatSerializerProvider.GetSerializer(ResultExportFormat.Json);
            Assert.AreEqual(typeof(JsonFormatSerializer), serializer.GetType());
        }
    }
}<commit_msg>Add Serialization test category to aid CI configuration.<commit_after>﻿using Duplicati.Library.Modules.Builtin;
using Duplicati.Library.Modules.Builtin.ResultSerialization;
using NUnit.Framework;

namespace Duplicati.UnitTest
{
    [TestFixture]
    public class ResultFormatSerializerProviderTest
    {
        [Test]
        [Category("Serialization")]
        public void TestGetSerializerGivenDuplicatiReturnsDuplicatiSerializer()
        {
            IResultFormatSerializer serializer = ResultFormatSerializerProvider.GetSerializer(ResultExportFormat.Duplicati);
            Assert.AreEqual(typeof(DuplicatiFormatSerializer), serializer.GetType());
        }

        [Test]
        [Category("Serialization")]
        public void TestGetSerializerGivenJsonReturnsJsonSerializer()
        {
            IResultFormatSerializer serializer = ResultFormatSerializerProvider.GetSerializer(ResultExportFormat.Json);
            Assert.AreEqual(typeof(JsonFormatSerializer), serializer.GetType());
        }
    }
}
{'fraction_non_alphanumeric': 0.07563901930099114, 'fraction_numerical': 0.0, 'mean_word_length': 3.807017543859649, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4666410', 'n_tokens_mistral': 468, 'n_tokens_neox': 467, 'n_words': 69}