Exemple #1
0
        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);
        }
Exemple #2
0
 public bool IsMatch(XDocument nuspec)
 {
     return(NuspecUtility
            .GetDuplicateNormalizedDependencyTargetFrameworks(nuspec)
            .Any());
 }