public void TestThatApplicationSettingsAreExtractedFromTheAppConfigFile() { var context = new OneLauncherContext(); Assert.That(context.ApplicationSettings, Is.Not.Null); Assert.That(context.ApplicationSettings.UserSettingsDirectory, Is.EqualTo("Data")); Assert.That(context.ApplicationSettings.UserSettingsFileName, Is.EqualTo("UserSettingsTest.json")); }
private OneLauncherContext GetContext(TemporaryDirectory directory) { var context = new OneLauncherContext(); context.ApplicationSettings.UserSettingsDirectory = directory.Location; context.ApplicationSettings.UserSettingsFileName = "UserSettings.json"; return(context); }