Esempio n. 1
0
        public void TestBiggestBlackSquareLength()
        {
            int[] A        = new int[] { 1, 2, 5, 3, 1, 3 };
            int   expected = 2;
            int   actual   = Lessons.BiggestBlackSquareLength(A);

            Assert.AreEqual(expected, actual);

            A        = new int[] { 3, 3, 3, 5, 4 };
            expected = 3;
            actual   = Lessons.BiggestBlackSquareLength(A);
            Assert.AreEqual(expected, actual);

            A        = new int[] { 6, 5, 5, 6, 2, 2 };
            expected = 4;
            actual   = Lessons.BiggestBlackSquareLength(A);
            Assert.AreEqual(expected, actual);
        }