Ejemplo n.º 1
0
            public void WhenSearchFilterIsSemVer2_SetsIsLatestSemVer2Properties()
            {
                var jObject = JObject.Parse(isLatestSearchResult);

                // Act
                var result = ExternalSearchService.ReadPackage(jObject, SemVerLevelKey.SemVerLevel2);

                // Assert
                Assert.True(result.IsLatestSemVer2);
                Assert.True(result.IsLatestStableSemVer2);
            }
Ejemplo n.º 2
0
            public void WhenSearchFilterIsNotSemVer2_DoesNotSetIsLatestSemVer2Properties()
            {
                var jObject = JObject.Parse(isLatestSearchResult);

                // Act
                var result = ExternalSearchService.ReadPackage(jObject, "1.0.0");

                // Assert
                Assert.False(result.IsLatestSemVer2);
                Assert.False(result.IsLatestStableSemVer2);
            }