public void do_not_persist_category_name_as_its_just_metadata_and_part_of_the_key()
        {
            var cat = new SoCultural();

            cat.Number = 43.32f;

            Thread.CurrentThread.CurrentCulture = new CultureInfo("sv-se");
            var dict = cat.ToConfigDictionary();

            dict.Keys.Should().NotContain("SectionName");
        }
        public void Should_format_values_with_invariant_culture()
        {
            var cat = new SoCultural();

            cat.Number = 43.32f;

            Thread.CurrentThread.CurrentCulture = new CultureInfo("sv-se");
            var dict = cat.ToConfigDictionary();

            dict["Number"].Should().Be("43.32");
            43.32f.ToString().Should().Be("43,32", "because we need to validate that the config is correct.");
        }
        public void Should_be_able_to_work_despite_local_culture_when_persisting_configuration()
        {
            var cat = new SoCultural();

            cat.Number = 43.32f;

            Thread.CurrentThread.CurrentCulture = new CultureInfo("sv-se");
            var dict = cat.ToConfigDictionary();

            dict["Number"].Should().Be("43.32");
            43.32f.ToString()
            .Should()
            .Be("43,32", "because we need to validate changes when another culture is active.");
        }