示例#1
0
        public void NormalizeVersionRange(string input, string expected)
        {
            // Arrange
            var defaultValue = input;

            // Arrange
            var actual = NuGetVersionUtility.NormalizeVersionRange(input, defaultValue);

            // Assert
            Assert.Equal(expected, actual);
        }
示例#2
0
        public void NormalizeVersionRange_UsesDifferentDefault()
        {
            // Arrange
            var input        = "invalid";
            var defaultValue = "(, )";

            // Act
            var actual = NuGetVersionUtility.NormalizeVersionRange(input, defaultValue);

            // Assert
            Assert.Equal(defaultValue, actual);
        }
 public string NormalizeVersionRange(string original)
 {
     return(NuGetVersionUtility.NormalizeVersionRange(original, DefaultVersionRange));
 }