Example #1
0
        public void TestMethod4()
        {
            Optimal opt = new Optimal(new List <int>()
            {
                1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
            });
            int expected_output = 1;

            int output = opt.GetMaxReward();

            Assert.AreEqual(expected_output, output);
        }
Example #2
0
        public void TestMethod2()
        {
            Optimal opt = new Optimal(new List <int>()
            {
                1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10
            });
            int expected_output = 3;

            int output = opt.GetMaxReward();

            Assert.AreEqual(expected_output, output);
        }