public void Find_NonLoadedAssembly_ReturnsNull() { var subject = new LoadedAssemblyFinder(); var result = subject.Find(new AssemblyName(Guid.NewGuid().ToString())); Assert.AreEqual(null, result); }
public void Find_LoadedAssembly_ReturnsAssembly() { var loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies(); var assembly = loadedAssemblies[0]; var subject = new LoadedAssemblyFinder(); var result = subject.Find(assembly.GetName()); Assert.AreEqual(assembly, result); }