public void TestCutBarMemo2()
        {
            int[] prix = { 1, 5, 8, 9, 10, 17, 17, 20, 24, 30 };

            int taille = prix.Length;

            int result = DynamicProg.CutRod(2, prix);

            Assert.AreEqual(result.ToString(), "5");
        }
        public void TestCutBarMemo()
        {
            int[] prix = { 1, 5, 8, 9, 10, 17, 17, 20 };

            int taille = prix.Length;

            int result = DynamicProg.CutRod(5, prix);

            //Console.WriteLine( result);
            Assert.AreEqual(result.ToString(), "13");
        }