public void GetDuplicateNormalizedDependencyTargetFrameworks(string resourceName, ILookup <NuGetFramework, string> expected) { // Arrange var nuspec = Resources.LoadXml(resourceName); // Act var actual = NuspecUtility.GetDuplicateNormalizedDependencyTargetFrameworks(nuspec); // Assert Assert.Equal(expected, actual); }
public bool IsMatch(XDocument nuspec) { return(NuspecUtility .GetDuplicateNormalizedDependencyTargetFrameworks(nuspec) .Any()); }