Ejemplo n.º 1
0
        public void Square1by1_0()
        {
            //Given
            var input = new char[][] {
                new[] { '0' }
            };
            var sut = new MaximalSquareProblem();

            //When
            int result = sut.MaximalSquare(input);

            //Then
            result.Should().Be(0);
        }
Ejemplo n.º 2
0
        public void Square4by4()
        {
            //Given
            var input = new char[][] {
                new[] { '0', '1', '1', '1', '1' },
                new[] { '1', '1', '1', '1', '1' },
                new[] { '1', '1', '1', '1', '1' },
                new[] { '1', '1', '1', '1', '1' }
            };
            var sut = new MaximalSquareProblem();

            //When
            int result = sut.MaximalSquare(input);

            //Then
            result.Should().Be(16);
        }