Fix CalculateTemplateVerionsTests to access the properties of the return type for comparison since a ValueTuple is no longer used.
This commit is contained in:
parent
c0806dddee
commit
9424463a43
1 changed files with 14 additions and 12 deletions
|
@ -11,10 +11,10 @@ namespace EndToEnd
|
||||||
{
|
{
|
||||||
var result = CalculateTemplateVersions.Calculate("3.1.0");
|
var result = CalculateTemplateVersions.Calculate("3.1.0");
|
||||||
|
|
||||||
result.Should()
|
// The patch is 1 higher than aspnetTemplateVersion due to https://github.com/dotnet/core-sdk/issues/6243
|
||||||
.Be(("3.1.1", "3.1", "3.1.1"),
|
result.InstallPath.Should().Be("3.1.1");
|
||||||
"the patch is 1 higher than aspnetTemplateVersion " +
|
result.MajorMinorVersion.Should().Be("3.1");
|
||||||
"due to https://github.com/dotnet/core-sdk/issues/6243");
|
result.MajorMinorPatchVersion.Should().Be("3.1.1");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
@ -22,8 +22,9 @@ namespace EndToEnd
|
||||||
{
|
{
|
||||||
var result = CalculateTemplateVersions.Calculate("3.0.0-alpha.1.20071.6");
|
var result = CalculateTemplateVersions.Calculate("3.0.0-alpha.1.20071.6");
|
||||||
|
|
||||||
result.Should()
|
result.InstallPath.Should().Be("3.0.1-alpha.1.20071.6");
|
||||||
.Be(("3.0.1-alpha.1.20071.6", "3.0", "3.0.1"));
|
result.MajorMinorVersion.Should().Be("3.0");
|
||||||
|
result.MajorMinorPatchVersion.Should().Be("3.0.1");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
@ -31,10 +32,10 @@ namespace EndToEnd
|
||||||
{
|
{
|
||||||
var result = CalculateTemplateVersions.Calculate("5.1.0");
|
var result = CalculateTemplateVersions.Calculate("5.1.0");
|
||||||
|
|
||||||
result.Should()
|
// The patch align with AspNetCoreTemplateMajorVersion again, since there is no non-deterministic existing ComponentId under Major version 5.
|
||||||
.Be(("5.1.0", "5.1", "5.1.0"),
|
result.InstallPath.Should().Be("5.1.0");
|
||||||
"the patch align with AspNetCoreTemplateMajorVersion again, " +
|
result.MajorMinorVersion.Should().Be("5.1");
|
||||||
"since there is no non-deterministic existing ComponentId under Major version 5.");
|
result.MajorMinorPatchVersion.Should().Be("5.1.0");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
@ -42,8 +43,9 @@ namespace EndToEnd
|
||||||
{
|
{
|
||||||
var result = CalculateTemplateVersions.Calculate("5.0.0-alpha.1.20071.6");
|
var result = CalculateTemplateVersions.Calculate("5.0.0-alpha.1.20071.6");
|
||||||
|
|
||||||
result.Should()
|
result.InstallPath.Should().Be("5.0.0-alpha.1.20071.6");
|
||||||
.Be(("5.0.0-alpha.1.20071.6", "5.0", "5.0.0"));
|
result.MajorMinorVersion.Should().Be("5.0");
|
||||||
|
result.MajorMinorPatchVersion.Should().Be("5.0.0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue