Created
January 16, 2010 23:49
-
-
Save plagelao/279095 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void insertarElMismoElementoDosVecesAumentaLaLongitudEnDosUniddes() { | |
Object objeto = new Object(); | |
collection.add(objeto); | |
assertEquals("Añadir un elemento aumenta en 1 su tamaño", 1, collection.size()); | |
collection.add(objeto); | |
assertEquals("Añadir de nuevo el mismo elemento aumenta en 1 su tamaño", 2, collection.size()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment