import org.junit.Before;
import org.junit.After;
import org.junit.Test;
import static org.junit.Assert.*;

public class TestR250 {

    @Test
    public void test01() {
        R250 objetoBase = new R250();
        String[] inputGrid = new String[] {};
        assertEquals(0, objetoBase.detectarRectangulos(inputGrid));
    }

    public void test02() {
        R250 objetoBase = new R250();
        inputGrid = new String[] { "" };
        assertEquals(0, objetoBase.detectarRectangulos(inputGrid));
    }

    public void test03() {
        R250 objetoBase = new R250();
        inputGrid = new String[] { " " };
        assertEquals(0, objetoBase.detectarRectangulos(inputGrid));
    }

    public void test04() {
        R250 objetoBase = new R250();        
        inputGrid = new String[] { "+-+", "| |", "+-+" };
        assertEquals(1, objetoBase.detectarRectangulos(inputGrid));
    }

    public void test05() {
        R250 objetoBase = new R250();
        inputGrid = new String[] { "  +-+", "  | |", "+-+-+", "| |  ", "+-+  " };
        assertEquals(2, objetoBase.detectarRectangulos(inputGrid));
    }

    public void test06() {
        R250 objetoBase = new R250();
        inputGrid = new String[] { "  +-+", "  | |", "+-+-+", "| | |", "+-+-+" };
        assertEquals(5, objetoBase.detectarRectangulos(inputGrid));
    }

    public void test07() {
        R250 objetoBase = new R250();
        inputGrid = new String[] { "+--+", "+--+" };
        assertEquals(1, objetoBase.detectarRectangulos(inputGrid));
    }

    public void test08() {
        R250 objetoBase = new R250();
        inputGrid = new String[] { "++", "||", "++" };
        assertEquals(1, objetoBase.detectarRectangulos(inputGrid));
    }

    public void test09() {
        R250 objetoBase = new R250();
        inputGrid = new String[] { "++", "++" };
        assertEquals(1, objetoBase.detectarRectangulos(inputGrid));
    }

    public void test10() {
        R250 objetoBase = new R250();
        inputGrid = new String[] { "  +-+", "    |", "+-+-+", "| | -", "+-+-+" };
        assertEquals(1, objetoBase.detectarRectangulos(inputGrid));
    }

    public void test11() {
        R250 objetoBase = new R250();
        inputGrid = new String[] { "+------+----+", "|      |    |", "+---+--+    |", "|   |       |",
                "+---+-------+" };
        assertEquals(3, objetoBase.detectarRectangulos(inputGrid));
    }

    public void test12() {
        R250 objetoBase = new R250();
        inputGrid = new String[] { "+------+----+", "|      |    |", "+------+    |", "|   |       |",
                "+---+-------+" };
        assertEquals(2, objetoBase.detectarRectangulos(inputGrid));
    }

    public void test13() {
        R250 objetoBase = new R250();
        inputGrid = new String[] { "+---+--+----+", "|   +--+----+", "+---+--+    |", "|   +--+----+", "+---+--+--+-+",
                "+---+--+--+-+", "+------+  | |", "          +-+" };
        assertEquals(60, objetoBase.detectarRectangulos(inputGrid));
    }
}

@@ -385,32 +385,41 @@
  R250();%0A       
+ String%5B%5D
  inputGrid = new
@@ -432,24 +432,24 @@
 g%5B%5D %7B %22%22 %7D;%0A
-
         asse
@@ -496,32 +496,33 @@
 os(inputGrid));%0A
+%0A
     %7D%0A%0A    publi
@@ -576,32 +576,41 @@
  R250();%0A       
+ String%5B%5D
  inputGrid = new
@@ -767,24 +767,25 @@
  R250();
+%0A
         
 %0A       
@@ -776,24 +776,24 @@
         
-%0A       
+String%5B%5D
  inputGr
@@ -974,32 +974,41 @@
  R250();%0A       
+ String%5B%5D
  inputGrid = new
@@ -1205,32 +1205,41 @@
  R250();%0A       
+ String%5B%5D
  inputGrid = new
@@ -1436,32 +1436,41 @@
  R250();%0A       
+ String%5B%5D
  inputGrid = new
@@ -1638,32 +1638,41 @@
  R250();%0A       
+ String%5B%5D
  inputGrid = new
@@ -1842,32 +1842,41 @@
  R250();%0A       
+ String%5B%5D
  inputGrid = new
@@ -2040,32 +2040,41 @@
  R250();%0A       
+ String%5B%5D
  inputGrid = new
@@ -2271,32 +2271,41 @@
  R250();%0A       
+ String%5B%5D
  inputGrid = new
@@ -2558,32 +2558,41 @@
  R250();%0A       
+ String%5B%5D
  inputGrid = new
@@ -2853,16 +2853,25 @@
 %0A       
+ String%5B%5D
  inputGr
@@ -2949,32 +2949,48 @@
 %22%7C   +--+----+%22,
+%0A               
  %22+---+--+--+-+%22
@@ -2990,32 +2990,16 @@
 +--+-+%22,
-%0A               
  %22+---+-

Update TestR250.java