internal static RegistryView GetInstance() { if (null == instance) { lock (syncRoot) { if (null == instance) { instance = new RegistryView(8 == IntPtr.Size); } } } return instance; }
public void SingletonMatchesArchitecture() { var view = RegistryView.GetInstance(); Assert.AreEqual <bool>(8 == IntPtr.Size, view.Is64Bit); }