Skip to content

Instantly share code, notes, and snippets.

@phellipealexandre
Last active May 18, 2022 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phellipealexandre/35cab1af852685488dca3852422dabbe to your computer and use it in GitHub Desktop.
Save phellipealexandre/35cab1af852685488dca3852422dabbe to your computer and use it in GitHub Desktop.
@Test
fun `Update registered note count when registering a new note in empty repository`() {
val dummyNote = //Dummy
noteRepository.registerNote(dummyNote) //Just filling the parameter, the double's content is not relevant for the test
val allNotes = noteRepository.getNotes()
assertEquals(expected = 1, actual = allNotes.size)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment