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" ) ); }
public ResolveTypesStep() { _typeManager = new TypeManager(); _typeManager.InspectAppDomainAssemblies(); _mixinKey2TypeReference = new Hashtable(); _interceptorKey2TypeReference = new Hashtable(); }
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 ); }