Example #1
0
        public void VersionWithinBounds_vs_AutoDetectedMod(string version)
        {
            var rd = new CKAN.RelationshipDescriptor {
                version = new ModuleVersion(version)
            };

            Assert.True(rd.WithinBounds(autodetected));
        }
Example #2
0
        public void VersionWithinBounds_ExactFalse(string version, string other_version, bool expected)
        {
            var rd = new CKAN.RelationshipDescriptor {
                version = new ModuleVersion(version)
            };

            Assert.AreEqual(expected, rd.WithinBounds(new ModuleVersion(other_version)));
        }
Example #3
0
        public void VersionWithinBounds_MinMax_vs_AutoDetectedMod(string min, string max)
        {
            var rd = new CKAN.RelationshipDescriptor
            {
                min_version = new ModuleVersion(min),
                max_version = new ModuleVersion(max)
            };

            Assert.True(rd.WithinBounds(autodetected));
        }
Example #4
0
        public void VersionWithinBounds_MinMax(string min, string max, string compare_to, bool expected)
        {
            var rd = new CKAN.RelationshipDescriptor
            {
                min_version = new ModuleVersion(min),
                max_version = new ModuleVersion(max)
            };

            Assert.AreEqual(expected, rd.WithinBounds(new ModuleVersion(compare_to)));
        }
Example #5
0
        public void VersionWithinBounds_AllNull()
        {
            var rd = new CKAN.RelationshipDescriptor();

            Assert.True(rd.WithinBounds(null));
        }
Example #6
0
        public void VersionWithinBounds_Null(string version)
        {
            var rd = new CKAN.RelationshipDescriptor();

            Assert.True(rd.WithinBounds(new ModuleVersion(version)));
        }