public void VersionWithinBounds_vs_AutoDetectedMod(string version) { var rd = new CKAN.RelationshipDescriptor { version = new ModuleVersion(version) }; Assert.True(rd.WithinBounds(autodetected)); }
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))); }
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)); }
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))); }
public void VersionWithinBounds_AllNull() { var rd = new CKAN.RelationshipDescriptor(); Assert.True(rd.WithinBounds(null)); }
public void VersionWithinBounds_Null(string version) { var rd = new CKAN.RelationshipDescriptor(); Assert.True(rd.WithinBounds(new ModuleVersion(version))); }