Пример #1
0
        private void PackingAssert(CorrectnessTestCase testCase)
        {
            var greatestCost =
                PackingAlgorithm.GetMaxPossibleCost(testCase.AllItems, testCase.Knapsack);

            Assert.AreEqual(testCase.ExpectedGreatestCost, greatestCost);
        }
Пример #2
0
 private void RunTestCase(PerformanceTestCase testCase)
 {
     PackingAlgorithm.GetMaxPossibleCost(testCase.AllItems, testCase.Knapsack);
 }
Пример #3
0
 public void TranslateMethodToMachineCode()
 {
     PackingAlgorithm.GetMaxPossibleCost(new List <Item>(), new Knapsack(0));
 }