Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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);
        }