Created
November 11, 2020 01:18
-
-
Save phellipealexandre/6d91470c6b094c275d17121d0b791a60 to your computer and use it in GitHub Desktop.
Exemplo simples de utilização de um Dummy em um teste
This file contains hidden or 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 | |
fun `Update registered note count when registering a new note in empty repository`() { | |
val dummyNote = //Dublê de teste Dummy | |
//Passado apenas preencher o parâmetro, o conteúdo do dublê não é tão relevante | |
noteRepository.registerNote(dummyNote) | |
assertEquals(expected = 1, actual = noteRepository.getNoteCount()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment