public bool Equals(UnresolvedAssembly other) { return(other != null && adapter.Equals(other.adapter)); }
/// <summary> /// Prepares to populate the children of the assembly test on demand by /// adding a deferred populator with <see cref="IPatternScope.AddDeferredComponentPopulator" />. /// </summary> /// <param name="assemblyScope">The assembly scope.</param> /// <param name="assembly">The assembly.</param> protected virtual void PrepareToPopulateChildrenOnDemand(IPatternScope assemblyScope, IAssemblyInfo assembly) { var populatedTypes = new GallioHashSet <ITypeInfo>(); assemblyScope.AddDeferredComponentPopulator(childCodeElementHint => { ITypeInfo type = childCodeElementHint as ITypeInfo; if (type != null && !type.IsNested && !populatedTypes.Contains(type) && assembly.Equals(type.Assembly)) { populatedTypes.Add(type); assemblyScope.Consume(type, false, DefaultTypePattern); } }); }
/// <summary> /// Prepares to populate the children of the assembly test on demand by /// adding a deferred populator with <see cref="IPatternScope.AddDeferredComponentPopulator" />. /// </summary> /// <param name="assemblyScope">The assembly scope.</param> /// <param name="assembly">The assembly.</param> protected virtual void PrepareToPopulateChildrenOnDemand(IPatternScope assemblyScope, IAssemblyInfo assembly) { var populatedTypes = new HashSet<ITypeInfo>(); assemblyScope.AddDeferredComponentPopulator(childCodeElementHint => { ITypeInfo type = childCodeElementHint as ITypeInfo; if (type != null && ! type.IsNested && !populatedTypes.Contains(type) && assembly.Equals(type.Assembly)) { populatedTypes.Add(type); assemblyScope.Consume(type, false, DefaultTypePattern); } }); }