-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep legacy version compliance checks in place for non-SemVer2 versions #3761
Changes from all commits
a7f0903
e6b2f1b
f9b6a24
efc9fcf
ac097b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -440,6 +440,16 @@ public void ReturnsNoErrorIfDependencyVersionIsSemVer200WithoutMetadataPart() | |
Assert.Empty(GetErrors(nuspecStream)); | ||
} | ||
|
||
[Theory] | ||
[InlineData("1.0.0-10")] | ||
[InlineData("1.0.0--")] | ||
public void ReturnsErrorIfNonSemVer2VersionIsNotCompliantWith2XClients(string version) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm assuming there already is, but there should be a test case that checks that it returns no error if the SemVer2 version is complaint with 2.X clients. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SemVer2 cannot ever be compliant with 2.x clients :) |
||
{ | ||
var nuspecStream = CreateNuspecStream(string.Format(NuSpecPlaceholderVersion, version)); | ||
|
||
Assert.Equal(new[] {String.Format(CoreStrings.Manifest_InvalidVersion, version)}, GetErrors(nuspecStream)); | ||
} | ||
|
||
[Fact] | ||
public void ReturnsErrorIfDependencyVersionIsSemVer200WithMetadataPart() | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please leave a comment about the old clients scenario and why this is important
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done e6b2f1b