コード例 #1
0
        public void MatchEqualOrHigher2Reversed() {
            var dvm = new DependencyVersionMatcher();

            var result = dvm.MatchesConstraints(new[] {"1.0.0.5", "1.0.0.4"}, ">= 1.0.0.4");

            result.Should().Be("1.0.0.5");
        }
コード例 #2
0
 public RepositoryStore() {
     Objects = new Dictionary<string, string>();
     Packages = new Dictionary<string, List<string>>();
     PackagesContentTypes = new Dictionary<string, List<string>>();
     Bundles = new Dictionary<string, List<string>>();
     PackagesCustomConfigs = new Dictionary<string, PackagesStoreCustomConfigs>();
     _dependencyVersionMatcher = new DependencyVersionMatcher();
 }