﻿namespace Dike.Core.Test.Localization
{
    using Shouldly;
    using System.Diagnostics.CodeAnalysis;
    using Xunit;

    /// <summary>
    /// Unit test for the <see cref="Core.Localization.LocalizedString"/> class.
    /// </summary>
    [ExcludeFromCodeCoverage]
    public class LocalizedStringTest
    {
        #region Methods

        /// <summary>
        /// Unit test of the constructor.
        /// </summary>
        [Fact]
        public void Constructor_Should_Pass()
        {
            System.Globalization.CultureInfo culture = new System.Globalization.CultureInfo("fr-BE");
            Core.Localization.LocalizedString localized = new Core.Localization.LocalizedString("Name", "Value", culture);
            localized.Name.ShouldBe("Name");
            localized.Value.ShouldBe("Value");
            localized.CultureInfo.ShouldBe(culture);
        }

        #endregion Methods
    }
}