title: RegistryKey Key.GetValue("keyName") is returning wrong values in Unit Test c# project
body: <p>I have this code:</p>
  
  <pre><code>RegistryKey key = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\MSDTC\\Security");
  if (key != null)
  {
        Object o = key.GetValue("NetworkDtcAccessInbound");
        if (o != null)
        {
        }
  }
  </code></pre>
  
  <p>It returns the <strong>correct value (1)</strong> when i use in normal project, but in Unit Test project it returns <strong>wrong value (0)</strong>, i know coz i see in regedit.</p>
  
  <p>If i check for these keys: <strong>LuTransactions</strong>, <strong>XaTransactions</strong>, it returns correct, even in <strong>Unit Test Project</strong>.</p>
  
  <p>If i check for these: <strong>NetworkDtcAccessInbound</strong>, <strong>NetworkDtcAccessOutbound</strong>, <strong>NetworkDtcAccess</strong> it returns wrong <strong>just in Unit Test Project</strong></p>
  
  <p>anyone knows about this behavior?</p>