ResolveType() public method

public ResolveType ( String name ) : Type
name String
return System.Type
Exemplo n.º 1
0
		public void AddAssembly()
		{
			TypeManager manager = new TypeManager();
			manager.AddAssembly( Assembly.GetAssembly( typeof(TypeManagerTestCase) ) );

			Assert.IsNull( manager.ResolveType( "System.String" ) );
			Assert.AreEqual( typeof(TypeManagerTestCase), manager.ResolveType( "TypeManagerTestCase" ) );
		}
Exemplo n.º 2
0
		public void InspectAppDomainAssemblies()
		{
			TypeManager manager = new TypeManager();
			manager.InspectAppDomainAssemblies();

			Type stringType = manager.ResolveType( "System.String" );
			Assert.AreEqual( typeof(String), stringType );

			stringType = manager.ResolveType( "String" );
			Assert.AreEqual( typeof(String), stringType );
		}