FromGlobalAccessCache() 공개 정적인 메소드

public static FromGlobalAccessCache ( System a ) : bool
a System
리턴 bool
예제 #1
0
        public static void RuntimeEnvironmentNegTest()
        {
            Type     clsType = typeof(RuntimeEnvironmentTest);
            Assembly assem   = clsType.Assembly;

            Assert.True(!RuntimeEnvironment.FromGlobalAccessCache(assem));

            Assert.Throws <PlatformNotSupportedException>(() => RuntimeEnvironment.SystemConfigurationFile);

            Guid guid;

            Assert.Throws <PlatformNotSupportedException>(() => RuntimeEnvironment.GetRuntimeInterfaceAsObject(guid, guid));
            Assert.Throws <PlatformNotSupportedException>(() => RuntimeEnvironment.GetRuntimeInterfaceAsIntPtr(guid, guid));
        }
 public void FromGlobalAccessCache_nNvoke_ReturnsFalse()
 {
     Assert.False(RuntimeEnvironment.FromGlobalAccessCache(typeof(RuntimeEnvironmentTests).Assembly));
     Assert.False(RuntimeEnvironment.FromGlobalAccessCache(null));
 }