コード例 #1
0
        public void FindGreaterCompatibleVersions_Returns_Greater_Versions()
        {
            var compatibleVersions = new List <string>
            {
                "1.9.0",
                "2.1.0",
                "2.1.1",
                "2.1.2",
                "2.1.4",
                "2.4.1"
            };
            var expectedResult = new List <string>
            {
                "2.1.2",
                "2.1.4",
                "2.4.1"
            };

            var actualResult = _nugetVersion.FindGreaterCompatibleVersions(compatibleVersions);

            CollectionAssert.AreEquivalent(expectedResult, actualResult);
        }