System.Reflection.Tests.ReflectionContextTests.ReflectionContext_GetTypeForObject C# (CSharp) Method

ReflectionContext_GetTypeForObject() private method

private ReflectionContext_GetTypeForObject ( ) : void
return void
        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));
        }
    }