public void FilterReferencedAssembliesIncludedNotExistBothTest() { var aw = new AssemblyWalker("NotExist*,NotExist", "ExcludedAssembly,Excluded.*"); var proxy = new AssemblyWalkerProxy(aw); var result = proxy.GetFilteredReferencedAssemblyNames(GetTestAssemblies()); Assert.NotNull(result); Assert.Equal(0, result.Count()); }
public void FilterReferencedAssembliesOneIncludedTest() { var aw = new AssemblyWalker("IncludedAssembly", "ExcludedAssembly,Excluded.*"); var proxy = new AssemblyWalkerProxy(aw); var result = proxy.GetFilteredReferencedAssemblyNames(GetTestAssemblies()); Assert.NotNull(result); Assert.Equal(1, result.Count()); Assert.Equal("IncludedAssembly", result[0].Name); }
public void FilterReferencedAssembliesEmptyTest() { var aw = new AssemblyWalker(null, null); var proxy = new AssemblyWalkerProxy(aw); var result = proxy.GetFilteredReferencedAssemblyNames(GetTestAssemblies()); Assert.NotNull(result); Assert.Equal(4, result.Count()); Assert.Equal("Included.Assembly", result[0].Name); Assert.Equal("IncludedAssembly", result[1].Name); }