Esempio n. 1
0
        public void GetDuplicateDependencies(string resourceName, ILookup <NuGetFramework, string> expected)
        {
            // Arrange
            var nuspec = Resources.LoadXml(resourceName);

            // Act
            var actual = NuspecUtility.GetDuplicateDependencies(nuspec);

            // Assert
            Assert.Equal(expected, actual);
        }
 public bool IsMatch(XDocument nuspec)
 {
     return(NuspecUtility
            .GetDuplicateDependencies(nuspec)
            .Any());
 }