Skip to content

Commit

Permalink
Merge pull request #490 from adamralph/test-multiple-hyphens
Browse files Browse the repository at this point in the history
test multiple hyphens in MinVerPreRelease
  • Loading branch information
adamralph authored Feb 7, 2021
2 parents 09b0440 + e3544d3 commit 72269a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions MinVerTests.Packages/OutputVariables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ public static async Task AreSet()
// arrange
var path = MethodBase.GetCurrentMethod().GetTestDirectory();
await Sdk.CreateProject(path);
var envVars = ("MinVerVersionOverride".ToAltCase(), "2.3.4-alpha.5+build.6");
var envVars = ("MinVerVersionOverride".ToAltCase(), "2.3.4-alpha-x.5+build.6");

// act
var (_, @out) = await Sdk.BuildProject(path, envVars: envVars);

// assert
Assert.Contains("MinVer: [output] MinVerVersion=2.3.4-alpha.5+build.6", @out);
Assert.Contains("MinVer: [output] MinVerVersion=2.3.4-alpha-x.5+build.6", @out);
Assert.Contains("MinVer: [output] MinVerMajor=2", @out);
Assert.Contains("MinVer: [output] MinVerMinor=3", @out);
Assert.Contains("MinVer: [output] MinVerPatch=4", @out);
Assert.Contains("MinVer: [output] MinVerPreRelease=alpha.5", @out);
Assert.Contains("MinVer: [output] MinVerPreRelease=alpha-x.5", @out);
Assert.Contains("MinVer: [output] MinVerBuildMetadata=build.6", @out);
Assert.Contains("MinVer: [output] AssemblyVersion=2.0.0.0", @out);
Assert.Contains("MinVer: [output] FileVersion=2.3.4.0", @out);
Assert.Contains("MinVer: [output] PackageVersion=2.3.4-alpha.5+build.6", @out);
Assert.Contains("MinVer: [output] Version=2.3.4-alpha.5+build.6", @out);
Assert.Contains("MinVer: [output] PackageVersion=2.3.4-alpha-x.5+build.6", @out);
Assert.Contains("MinVer: [output] Version=2.3.4-alpha-x.5+build.6", @out);
}
}
}

0 comments on commit 72269a1

Please sign in to comment.