C# Класс SIL.FieldWorks.Common.FwUtils.DummyFwRegistryHelper

Alternative implementation for unit tests
Наследование: IFwRegistryHelper
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
DeleteRegistrySubkeyTreeIfPresent ( RegistryKey key, string subKeyName ) : void
GetTestKey ( string keyName ) : RegistryKey

Описание методов

DeleteAllSubTreesIfPresent() публичный Метод

Removes all SubTrees from registry, for test SetUp or Teardown
public DeleteAllSubTreesIfPresent ( ) : void
Результат void

Paratext7orLaterInstalled() публичный Метод

public Paratext7orLaterInstalled ( ) : bool
Результат bool

ParatextSettingsDirectory() публичный Метод

public ParatextSettingsDirectory ( ) : string
Результат string

ParatextSettingsDirectoryExists() публичный Метод

public ParatextSettingsDirectoryExists ( ) : bool
Результат bool

SetupVersion7ProjectSharedSetting() публичный Метод

For testing key migration on upgrade.
public SetupVersion7ProjectSharedSetting ( ) : RegistryKey
Результат Microsoft.Win32.RegistryKey

SetupVersion7ProjectSharedSettingLocation() публичный Метод

For testing key migration on upgrade.
public SetupVersion7ProjectSharedSettingLocation ( ) : RegistryKey
Результат Microsoft.Win32.RegistryKey

SetupVersion7Settings() публичный Метод

For testing the upgrade of user registry keys from FW7 to FW8
public SetupVersion7Settings ( ) : RegistryKey
Результат Microsoft.Win32.RegistryKey

SetupVersion8Settings() публичный Метод

For testing upgrade of user settings where some version 8 keys already exist.
public SetupVersion8Settings ( ) : RegistryKey
Результат Microsoft.Win32.RegistryKey