예제 #1
0
        public void GetEmptyDependencyVersions(string resourceName, string[] expected)
        {
            // Arrange
            var nuspec = Resources.LoadXml(resourceName);

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

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