SettingsTests ChangeAndSaveSettings Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Core
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ChangeAndSaveSettings()
Examples

[Test]
public void ChangeAndSaveSettings()
{
    Settings settings = Settings.Current;
    settings.PlayerName = ModifiedPlayerName;
    settings.TwoLetterLanguageName = ModifiedTwoLetterLanguageName;
    settings.StartInFullscreen = false;
    Assert.AreEqual(settings.TwoLetterLanguageName, ModifiedTwoLetterLanguageName);
    Assert.AreEqual(ModifiedPlayerName, settings.PlayerName);
    settings.Save();
}
See Also