ApplicationSettingsTests.ReadFromInstanceTests.CustomizedAppSettings.SaveAllIntoSettings C# (CSharp) Method

SaveAllIntoSettings() public method

public SaveAllIntoSettings ( ) : void
return void
        public void SaveAllIntoSettings()
        {
            this.ReadFrom(this);
        }

Usage Example

        public void Then_properties_in_AppSettings_class_should_be_skipped()
        {
            var settings = new CustomizedAppSettings("filename", FileOption.None);
            settings.Numeric = 10;

            settings.SaveAllIntoSettings();

            Assert.AreEqual(1, settings.Config.AppSettings.Settings.Count);
        }