<commit_before>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AppArgsTest.cs" company="Kephas Software SRL">
//   Copyright (c) Kephas Software SRL. All rights reserved.
//   Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace Kephas.Core.Tests.Application
{
    using Kephas.Application;
    using Kephas.Logging;
    using NUnit.Framework;

    [TestFixture]
    public class AppArgsTest
    {
        [Test]
        public void AppArgs_empty()
        {
            var args = new AppArgs();
            var dictArgs = args.ToDictionary();
            Assert.Greater(dictArgs.Count, 0);
        }

        [Test]
        public void LogLevel_empty()
        {
            var args = new AppArgs("");
            Assert.IsNull(args.LogMinimumLevel);
        }

        [Test]
        public void LogLevel_parsed()
        {
            var args = new AppArgs("-loglevel debug");
            Assert.AreEqual(LogLevel.Debug, args.LogMinimumLevel);
        }
    }<commit_msg>Cosmetics<commit_after>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AppArgsTest.cs" company="Kephas Software SRL">
//   Copyright (c) Kephas Software SRL. All rights reserved.
//   Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace Kephas.Core.Tests.Application
{
    using Kephas.Application;
    using Kephas.Logging;
    using NUnit.Framework;

    [TestFixture]
    public class AppArgsTest
    {
        [Test]
        public void AppArgs_empty()
        {
            var args = new AppArgs();
            var dictArgs = args.ToDictionary();
            Assert.Greater(dictArgs.Count, 0);
        }

        [Test]
        public void LogMinimumLevel_empty()
        {
            var args = new AppArgs("");
            Assert.IsNull(args.LogMinimumLevel);
        }

        [Test]
        public void LogMinimumLevel_parsed()
        {
            var args = new AppArgs("-loglevel debug");
            Assert.AreEqual(LogLevel.Debug, args.LogMinimumLevel);
        }
    }
{'fraction_non_alphanumeric': 0.2665615141955836, 'fraction_numerical': 0.0007886435331230284, 'mean_word_length': 1.2003469210754554, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2764274', 'n_tokens_mistral': 592, 'n_tokens_neox': 584, 'n_words': 152}