Exemple #1
0
        public void TestOne()
        {
            // check data
            int[,] matrix =
            {
                { 1, 1, 1, 1, 1 },
                { 1, 1, 1, 1, 1 },
                { 1, 1, 1, 1, 2 }
            };
            var inTest = MaxSumArea.MaxSum(matrix);

            Assert.AreEqual(10, inTest);
        }
Exemple #2
0
        public void TestTwo()
        {
            // check data
            int[,] matrix =
            {
                { 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 2 }
            };
            var inTest = MaxSumArea.MaxSum(matrix);

            Assert.AreEqual(2, inTest);
        }