Пример #1
0
 public void DottedSpecsSupported()
 {
     // We should support both two and three number dotted specs, on both
     // tagged and dev releases.
     Assert.IsTrue(CkanModule.IsSpecSupported(new ModuleVersion("v1.1")));
     Assert.IsTrue(CkanModule.IsSpecSupported(new ModuleVersion("v1.0.2")));
 }
Пример #2
0
        public void IsSpecSupported()
        {
            // We should always support old versions, and the classic '1' version.
            Assert.IsTrue(CkanModule.IsSpecSupported(new ModuleVersion("1")));
            Assert.IsTrue(CkanModule.IsSpecSupported(new ModuleVersion("v0.02")));

            // We shouldn't support this far-in-the-future version.
            // NB: V2K bug!!!
            Assert.IsFalse(CkanModule.IsSpecSupported(new ModuleVersion("v2000.99.99")));
        }
Пример #3
0
        public void IsSpecSupported()
        {
            if (CKAN.Meta.ReleaseNumber() == null)
            {
                Assert.Inconclusive("Dev build");
            }

            // We should always support old versions, and the classic '1' version.
            Assert.IsTrue(CkanModule.IsSpecSupported(new CKAN.Version("1")));
            Assert.IsTrue(CkanModule.IsSpecSupported(new CKAN.Version("v0.02")));

            // We shouldn't support this far-in-the-future version.
            // NB: V2K bug!!!
            Assert.IsFalse(CkanModule.IsSpecSupported(new CKAN.Version("v2000.99.99")));
        }