示例#1
0
        public void GetEmptyDependencyIds(string resourceName, string[] expected)
        {
            // Arrange
            var nuspec = Resources.LoadXml(resourceName);

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

            // Assert
            Assert.Equal(expected, actual);
        }
示例#2
0
 public bool IsMatch(XDocument nuspec)
 {
     return(NuspecUtility
            .GetEmptyDependencyIds(nuspec)
            .Any());
 }