public void parse_nuget_syntax_error(string p) { var r = SVersionBound.NugetTryParse(p); r.IsValid.Should().BeFalse(); r.Error.Should().NotBeNull(); }
public void parse_nuget_with_fourth_part(string p, string expected) { var r = SVersionBound.NugetTryParse(p); r.Error.Should().BeNull(); r.Result.ToString().Should().Be(expected); r.IsApproximated.Should().BeFalse(); r.FourthPartLost.Should().BeTrue(); }
public void parse_nuget_syntax(string p, string expected, string approximate) { var r = SVersionBound.NugetTryParse(p); r.Error.Should().BeNull(); r.Result.ToString().Should().Be(expected); r.IsApproximated.Should().Be(approximate == "Approx"); r.FourthPartLost.Should().BeFalse(); }