Summary description for TypeManager.
예제 #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" ) );
		}
예제 #2
0
		public ResolveTypesStep()
		{
			_typeManager = new TypeManager();
			_typeManager.InspectAppDomainAssemblies();
			
			_mixinKey2TypeReference = new Hashtable();
			_interceptorKey2TypeReference = new Hashtable();
		}
예제 #3
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 );
		}