public void And_CultureName_is_null_Then_InvariantCulture_is_used() { var settings = new AppSettings("filename", FileOption.None); var mySettings = new SettingsWithNullCultureName() { FinnishLocaleDoubleValue = 1.1d }; settings.ReadFrom(mySettings); // Since we are not using specific locale the InvariantCulture writes // the value normally 1.1. If we would have specified fi-FI locale the // value would have been 1,1 Assert.AreEqual("1.1", settings.GetValue("DoubleWithFinnishLocale")); Assert.AreEqual(1.1d, settings.GetValue<double>("DoubleWithFinnishLocale")); }