Example #1
0
        public void Test1()
        {
            bool[,] matrix = new bool[, ]
            {
                { true, false, false }
            };

            Assert.AreEqual(Submatrix.SolveBrute(matrix), Submatrix.Solve(matrix));
        }
Example #2
0
        public void Test3()
        {
            bool[,] matrix = new bool[, ]
            {
                { false, false, true, false, false },
                { false, true, true, true, false },
                { true, true, true, true, true },
            };

            Assert.AreEqual(6, Submatrix.Solve(matrix));
            Assert.AreEqual(Submatrix.SolveBrute(matrix), Submatrix.Solve(matrix));
        }