public void NormalizeVersionRange(string input, string expected) { // Arrange var defaultValue = input; // Arrange var actual = NuGetVersionUtility.NormalizeVersionRange(input, defaultValue); // Assert Assert.Equal(expected, actual); }
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)); }