Ejemplo n.º 1
0
 public void PointerType()
 {
     var type = new PointerTypeReference(new PrimitiveTypeReference(PrimitiveType.Byte));
     var result = type.Resolve(_compilationUnit.GetScope());
     Assert.IsInstanceOfType(result, typeof(MemberResolveResult));
     Assert.IsInstanceOfType(result.ScopeProvider, typeof(PointerTypeDefinition));
     var pointerType = (PointerTypeDefinition)result.ScopeProvider;
     Assert.AreEqual("System.Byte", pointerType.BaseType.FullName);
 }