public void CheckForNoMajorReleasesTest() { Version currentVersion = new(2, 48); var availableVersions = ReleaseVersion.Parse(GetReleasesConfigFileText()); var updates = ReleaseVersion.GetNewerVersions(currentVersion, false, availableVersions); updates.Select(rv => rv.Version).Should().BeEmpty(); }
public void CheckForMajorReleasesTest() { Version currentVersion = new(2, 47); var availableVersions = ReleaseVersion.Parse(GetReleasesConfigFileText()); var updates = ReleaseVersion.GetNewerVersions(currentVersion, false, availableVersions); var expectedVersions = new[] { new Version(2, 48) }; updates.Select(rv => rv.Version).Should().Equal(expectedVersions); }