Ejemplo n.º 1
0
        public void TestIsItemRangeRequiredFalse(string preFilterRangeString)
        {
            // Arrange
            NuGetVersion catalogItemLower = new NuGetVersion("1.0.0");
            NuGetVersion catalogItemUpper = new NuGetVersion("2.0.0");
            VersionRange preFilterRange   = VersionRange.Parse(preFilterRangeString);

            // Act and Assert
            Assert.False(ResolverMetadataClientUtility.IsItemRangeRequired(preFilterRange, catalogItemLower, catalogItemUpper));
        }
Ejemplo n.º 2
0
        public void TestIsItemRangeRequiredTrue(string dependencyRangeString)
        {
            // Arrange
            NuGetVersion catalogItemLower = new NuGetVersion("1.0.0");
            NuGetVersion catalogItemUpper = new NuGetVersion("2.0.0");
            VersionRange dependencyRange  = VersionRange.Parse(dependencyRangeString);

            // Act and Assert
            Assert.True(ResolverMetadataClientUtility.IsItemRangeRequired(dependencyRange, catalogItemLower, catalogItemUpper));
        }