public void MinClientVersionUtility_CurrentVersionIsCompatible() { // Arrange && Act var result = MinClientVersionUtility.IsMinClientVersionCompatible(MinClientVersionUtility.GetNuGetClientVersion()); // Assert Assert.True(result); }
public void MinClientVersionUtility_CheckCompatible(string version, bool expected) { // Arrange && Act var result = MinClientVersionUtility.IsMinClientVersionCompatible(NuGetVersion.Parse(version)); // Assert Assert.Equal(expected, result); }
public void MinClientVersionUtility_ReadFromNuspecInCompat() { // Arrange var nuspec = GetNuspec("99.0.0"); // Act var result = MinClientVersionUtility.IsMinClientVersionCompatible(nuspec); // Assert Assert.False(result); }
public void MinClientVersionUtility_ReadFromNuspecCompat() { // Arrange var nuspec = GetNuspec("2.8.6"); // Act var result = MinClientVersionUtility.IsMinClientVersionCompatible(nuspec); // Assert Assert.True(result); }