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

Alternative implementation for unit tests
Inheritance: IFwRegistryHelper
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method 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

Method Description
DeleteRegistrySubkeyTreeIfPresent ( RegistryKey key, string subKeyName ) : void
GetTestKey ( string keyName ) : RegistryKey

Method Details

DeleteAllSubTreesIfPresent() public method

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

Paratext7orLaterInstalled() public method

public Paratext7orLaterInstalled ( ) : bool
return bool

ParatextSettingsDirectory() public method

public ParatextSettingsDirectory ( ) : string
return string

ParatextSettingsDirectoryExists() public method

public ParatextSettingsDirectoryExists ( ) : bool
return bool

SetupVersion7ProjectSharedSetting() public method

For testing key migration on upgrade.
public SetupVersion7ProjectSharedSetting ( ) : RegistryKey
return Microsoft.Win32.RegistryKey

SetupVersion7ProjectSharedSettingLocation() public method

For testing key migration on upgrade.
public SetupVersion7ProjectSharedSettingLocation ( ) : RegistryKey
return Microsoft.Win32.RegistryKey

SetupVersion7Settings() public method

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

SetupVersion8Settings() public method

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