Exemplo n.º 1
0
        public void PointerType()
        {
            var type          = typeof(string).MakePointerType();
            var typeReference = TypeNameParser.ParseType(null, type.AssemblyQualifiedName);

            Utilities.ValidateType(type, typeReference);
        }
Exemplo n.º 2
0
        public void ArrayType()
        {
            var type          = typeof(string[]);
            var typeReference = TypeNameParser.ParseType(null, type.AssemblyQualifiedName);

            Utilities.ValidateType(type, typeReference);
        }
Exemplo n.º 3
0
        public void NestedType()
        {
            var type          = typeof(DebuggableAttribute.DebuggingModes);
            var typeReference = TypeNameParser.ParseType(null, type.AssemblyQualifiedName);

            Utilities.ValidateType(type, typeReference);
            Utilities.ValidateAssembly(new ReflectionAssemblyNameWrapper(type.Assembly.GetName()),
                                       typeReference.GetElementType().DeclaringTypeDescriptor.ResolutionScope as AssemblyReference);
        }
Exemplo n.º 4
0
        public void SimpleType()
        {
            var type          = typeof(string);
            var typeReference = TypeNameParser.ParseType(null, type.AssemblyQualifiedName);

            Utilities.ValidateType(type, typeReference);
            Utilities.ValidateAssembly(new ReflectionAssemblyNameWrapper(type.Assembly.GetName()),
                                       typeReference.ResolutionScope as AssemblyReference);
        }