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