public void SetUp() { // When running a test, use the in-memory registry. Let the ComAdmin APIs know to use this instance instead // of the default WindowsRegistry. _registry = new InMemoryRegistry(); ComAdmin.SetRegistryImplementation(_registry); }
public void TearDown() { // Reset the service registry to the standard Windows Registry implementation. ComAdmin.SetRegistryImplementation(new WindowsRegistry()); }