Exemple #1
0
        public void LoadAllHCP()
        {
            var tspLib = new TspLib95(RootDir);

            tspLib.LoadAllHCP();
            var items = tspLib.HCPItems();

            Assert.AreEqual(Enumerable.Count(items), 9);
        }
Exemple #2
0
        public void LoadNone()
        {
            var tspLib = new TspLib95(RootDir);

            Assert.IsFalse(tspLib.Items.Any());
            Assert.IsFalse(tspLib.ATSPItems().Any());
            Assert.IsFalse(tspLib.TSPItems().Any());
            Assert.IsFalse(tspLib.SOPItems().Any());
            Assert.IsFalse(tspLib.HCPItems().Any());
            Assert.IsFalse(tspLib.CVRPItems().Any());
        }