ApplicationSettingsTests.When_Getting_Optional_Value.And_CultureInfo_is_specified_it_should_be_used C# (CSharp) Method

And_CultureInfo_is_specified_it_should_be_used() private method

private And_CultureInfo_is_specified_it_should_be_used ( ) : void
return void
        public void And_CultureInfo_is_specified_it_should_be_used()
        {
            var settings = new AppSettings(SimpleConfig.AbsolutePathToConfigFile);
            var expectedValue = 1.1;
            var anyDefaultValue = 0.0;

            var value = settings.GetOptionalValue<double>(SimpleConfig.DoubleWithFinnishLocale, anyDefaultValue, CultureInfo.GetCultureInfo("fi-FI"));

            Assert.AreEqual(expectedValue, value);
        }