MapAssembly() public method

public MapAssembly ( Assembly asm ) : Assembly
asm Assembly
return Assembly
Esempio n. 1
0
        public void ReflectionContext_GetTypeForObject()
        {
            ReflectionContextSubClass rc = new ReflectionContextSubClass();
            TypeInfo typeInfo            = rc.MapType(typeof(int).GetTypeInfo());

            Assert.Equal(typeof(int).GetTypeInfo().Assembly, rc.MapAssembly(typeof(int).GetTypeInfo().Assembly));
            Assert.Equal(typeof(ReflectionContextSubClass).GetTypeInfo(), rc.GetTypeForObject(rc));
        }
Esempio n. 2
0
        public void ReflectionContext_GetTypeForObject()
        {
            ReflectionContextSubClass rc = new ReflectionContextSubClass();
            TypeInfo typeInfo = rc.MapType(typeof(int).GetTypeInfo());

            Assert.Equal(typeof(int).GetTypeInfo().Assembly, rc.MapAssembly(typeof(int).GetTypeInfo().Assembly));
            Assert.Equal(typeof(ReflectionContextSubClass).GetTypeInfo(), rc.GetTypeForObject(rc));
        }