public void SetupBeforeAllTests() { projectSettingsBackup = EditingContextManager.LoadProjectSettings(); userSettingsBackup = EditingContextManager.LoadUserSettings(); EditingContextManager.ShowEditorVR(); }
public void LoadProjectSettings_IfAssetFound() { EditingContextManager.SaveProjectSettings(settings); var loaded = EditingContextManager.LoadProjectSettings(); Assert.AreEqual(settings.defaultContextName, loaded.defaultContextName); }
public void SetupBeforeAllTests() { projectSettingsBackup = EditingContextManager.LoadProjectSettings(); userSettingsBackup = EditingContextManager.LoadUserSettings(); #if UNITY_EDITORXR_EDIT_MODE_SUPPORT EditingContextManager.ShowEditorXR(); #endif }
public void LoadUserSettings_ProjectSettingsFallback() { if (File.Exists(EditingContextManager.userSettingsPath)) { File.Delete(EditingContextManager.userSettingsPath); } var projectSettings = EditingContextManager.LoadProjectSettings(); var userSettings = EditingContextManager.LoadUserSettings(); Assert.AreEqual(projectSettings.defaultContextName, userSettings.defaultContextName); }
public void LoadProjectSettings_IfAssetNotFound() { if (File.Exists(EditingContextManager.settingsPath)) { File.Delete(EditingContextManager.settingsPath); } var loaded = EditingContextManager.LoadProjectSettings(); Assert.IsInstanceOf <EditingContextManagerSettings>(loaded); Assert.IsNull(loaded.defaultContextName); }