Example #1
0
        public void FindSolutionStartTest2()
        {
            var data       = new KnapsackProblemDataParser();
            var constraint = KnapsackProblemDataParser.FindSolutionStart("3369\t3712", data);

            Assert.AreEqual(KnapsackProblemDataParser.FindSolutionStart, constraint);
        }
Example #2
0
        public void FindSolutionStartTest1()
        {
            var data       = new KnapsackProblemDataParser();
            var constraint = KnapsackProblemDataParser.FindSolutionStart("sol:", data);

            Assert.AreEqual(KnapsackProblemDataParser.ReadSolutionResourceOrFindSolutionEnd, constraint);
        }