Skip to content

Commit

Permalink
Fix FXVersion.ToString, and test checking manifest version
Browse files Browse the repository at this point in the history
  • Loading branch information
dsplaisted committed Apr 30, 2021
1 parent be21df6 commit ff83aa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@ public override string ToString()
=> (!string.IsNullOrEmpty(Pre), !string.IsNullOrEmpty(Build)) switch
{
(false, false) => $"{Major}.{Minor}.{Patch}",
(true, false) => $"{Major}.{Minor}.{Patch}-{Pre}",
(false, true) => $"{Major}.{Minor}.{Patch}+{Build}",
(true, true) => $"{Major}.{Minor}.{Patch}-{Pre}+{Build}",
(true, false) => $"{Major}.{Minor}.{Patch}{Pre}",
(false, true) => $"{Major}.{Minor}.{Patch}{Build}",
(true, true) => $"{Major}.{Minor}.{Patch}{Pre}{Build}",
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void ItCanDeserialize()
using (FileStream fsSource = new FileStream(Path.Combine("Manifests", "Sample.json"), FileMode.Open, FileAccess.Read))
{
var result = WorkloadManifestReader.ReadWorkloadManifest("Sample", fsSource);
result.Version.Should().Be("5.0.0");
result.Version.Should().Be("5.0.0-preview1");
var xamAndroidId = new WorkloadPackId("Xamarin.Android.Sdk");

result.Packs[xamAndroidId].Id.Should().Be(xamAndroidId);
Expand Down

0 comments on commit ff83aa9

Please sign in to comment.