public void Then_read_only_properties_should_be_skipped() { var settings = new AppSettings(SimpleConfig.AbsolutePathToConfigFile); var mySettings = new SettingsWithReadOnlyProperty(); settings.WriteInto(mySettings); Assert.AreEqual(double.MinValue, mySettings.DoubleValue); Assert.AreEqual("abc", mySettings.NonEmptyStringValue); }