Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Fix RegistryKey.GetValue tests #1278

Closed
wants to merge 1 commit into from
Closed

Conversation

Maxwe11
Copy link
Contributor

@Maxwe11 Maxwe11 commented Mar 28, 2015

Original tests rely on assumption that default value is not set for HKEY_CURRENT_USER. This assumption is wrong because default value of HKEY_CURRENT_USER could be used by someone else.
Also original tests rely on assumption that value with name "tt" doesn't exists in HKEY_CURRENT_USER which also could be wrong on some machines.
In general tests should be run against test subkey instead of HKEY_CURRENT_USER. This commit fixes this.

Fixes #566

Original tests rely on assumption that default value is not set for HKEY_CURRENT_USER. This assumption is wrong because default value of HKEY_CURRENT_USER could be used by someone else.
Also original tests rely on assumption that value with name "tt" doesn't exists in HKEY_CURRENT_USER which also could be wrong on some machines.
In general tests should be run against test subkey instead of HKEY_CURRENT_USER. This commit fixes this.

Fixes #566
@Maxwe11
Copy link
Contributor Author

Maxwe11 commented Mar 30, 2015

/cc @pallavit
before before refactoring these tests we should fix issue

@pallavit
Copy link

pallavit commented Apr 1, 2015

@Maxwe11 - Let me know if you are still working on this else I will pick this item next :) and unblock your other contribution :).

@Maxwe11
Copy link
Contributor Author

Maxwe11 commented Apr 1, 2015

@pallavit you are welcome because I'm stuck with how to properly handle result of RegQueryValueEx :)

@Maxwe11 Maxwe11 closed this Apr 1, 2015
@Maxwe11 Maxwe11 deleted the fix-issue-566 branch April 14, 2015 05:51
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants