<commit_before>﻿using System;
using System.Globalization;
using System.Threading;
using CrossMailing.Common;
using CrossMailing.Wpf.Common.Navigation;
using FluentAssertions;
using Xunit;

namespace CrossMailing.Wpf.Common.UnitTest.Navigation._NavigationItem
{
    public class Label
    {
        [Fact]
        [InlineData("en", "english text")]
        [InlineData("de", "deutscher text")]
        public void ShouldGetLocalizedLabel(string culture, string expectedLabelText)
        {
            Thread.CurrentThread.CurrentCulture = new CultureInfo(culture);

            var item = new NavigationItem(null, Guid.Empty, new ResourceValue(typeof(Properties.Resources), "TestResourceString"));

            item.Label.Should().Be(expectedLabelText);
        }
    }
}<commit_msg>Fixed failing test for NavigationItem.<commit_after>﻿using System;
using System.Globalization;
using System.Threading;
using CrossMailing.Common;
using CrossMailing.Wpf.Common.Navigation;
using FluentAssertions;
using Xunit;

namespace CrossMailing.Wpf.Common.UnitTest.Navigation._NavigationItem
{
    public class Label
    {
        [Theory]
        [InlineData("en", "english text")]
        [InlineData("de", "deutscher text")]
        public void ShouldGetLocalizedLabel(string culture, string expectedLabelText)
        {
            Thread.CurrentThread.CurrentUICulture = new CultureInfo(culture);

            var item = new NavigationItem(null, Guid.Empty, new ResourceValue(typeof(Properties.Resources), "TestResourceString"));

            item.Label.Should().Be(expectedLabelText);
        }
    }
}
{'fraction_non_alphanumeric': 0.10094043887147336, 'fraction_numerical': 0.0, 'mean_word_length': 3.6666666666666665, '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': '4630246', 'n_tokens_mistral': 436, 'n_tokens_neox': 430, 'n_words': 92}