public void Initialization_ReferenceNotTracked() { _assemblyDefinition1.MainModule.AssemblyReferences.Add(_assemblyDefinition2.Name); AssemblyTracker tracker = new AssemblyTracker(new[] { _assemblyDefinition1 }, new TypeDefinitionCache()); Assert.That(tracker.GetAssemblies(), Is.EquivalentTo(new[] { _assemblyDefinition1 })); }
public void Initialization() { AssemblyTracker tracker = new AssemblyTracker(new [] { _assemblyDefinition1, _assemblyDefinition2 }, new TypeDefinitionCache()); Assert.That(tracker.GetAssemblies(), Is.EquivalentTo(new[] { _assemblyDefinition1, _assemblyDefinition2 })); }