GetInstance() static private method

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

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