GetInstance() static private method

Gets the single instance for the current process bitness.
static private GetInstance ( ) : RegistryView
return RegistryView
Esempio n. 1
0
        public void SingletonMatchesArchitecture()
        {
            var view = RegistryView.GetInstance();

            Assert.AreEqual <bool>(8 == IntPtr.Size, view.Is64Bit);
        }
Esempio n. 2
0
 public static void Initialize(TestContext context)
 {
     // Initialize to avoid showing perf hit to individual tests.
     RegistryView.GetInstance();
 }