示例#1
0
        public void parse_nuget_syntax_error(string p)
        {
            var r = SVersionBound.NugetTryParse(p);

            r.IsValid.Should().BeFalse();
            r.Error.Should().NotBeNull();
        }
示例#2
0
        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();
        }
示例#3
0
        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();
        }