C# Class SIL.FieldWorks.Common.FwUtils.DummyFwRegistryHelper

Alternative implementation for unit tests
Inheritance: IFwRegistryHelper
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
DeleteAllSubTreesIfPresent ( ) : void

Removes all SubTrees from registry, for test SetUp or Teardown

Paratext7orLaterInstalled ( ) : bool

ParatextSettingsDirectory ( ) : string

ParatextSettingsDirectoryExists ( ) : bool

SetupVersion7ProjectSharedSetting ( ) : RegistryKey

For testing key migration on upgrade.

SetupVersion7ProjectSharedSettingLocation ( ) : RegistryKey

For testing key migration on upgrade.

SetupVersion7Settings ( ) : RegistryKey

For testing the upgrade of user registry keys from FW7 to FW8

SetupVersion8Settings ( ) : RegistryKey

For testing upgrade of user settings where some version 8 keys already exist.

Private Methods

Méthode Description
DeleteRegistrySubkeyTreeIfPresent ( RegistryKey key, string subKeyName ) : void
GetTestKey ( string keyName ) : RegistryKey

Method Details

DeleteAllSubTreesIfPresent() public méthode

Removes all SubTrees from registry, for test SetUp or Teardown
public DeleteAllSubTreesIfPresent ( ) : void
Résultat void

Paratext7orLaterInstalled() public méthode

public Paratext7orLaterInstalled ( ) : bool
Résultat bool

ParatextSettingsDirectory() public méthode

public ParatextSettingsDirectory ( ) : string
Résultat string

ParatextSettingsDirectoryExists() public méthode

public ParatextSettingsDirectoryExists ( ) : bool
Résultat bool

SetupVersion7ProjectSharedSetting() public méthode

For testing key migration on upgrade.
public SetupVersion7ProjectSharedSetting ( ) : RegistryKey
Résultat Microsoft.Win32.RegistryKey

SetupVersion7ProjectSharedSettingLocation() public méthode

For testing key migration on upgrade.
public SetupVersion7ProjectSharedSettingLocation ( ) : RegistryKey
Résultat Microsoft.Win32.RegistryKey

SetupVersion7Settings() public méthode

For testing the upgrade of user registry keys from FW7 to FW8
public SetupVersion7Settings ( ) : RegistryKey
Résultat Microsoft.Win32.RegistryKey

SetupVersion8Settings() public méthode

For testing upgrade of user settings where some version 8 keys already exist.
public SetupVersion8Settings ( ) : RegistryKey
Résultat Microsoft.Win32.RegistryKey