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

            Assert.True(rd.WithinBounds(autodetected));
        }
Exemplo n.º 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)));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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)));
        }
Exemplo n.º 5
0
        public void VersionWithinBounds_AllNull()
        {
            var rd = new CKAN.RelationshipDescriptor();

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

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