Skip to content

Instantly share code, notes, and snippets.

View thalescm's full-sized avatar

Thales Machado thalescm

View GitHub Profile
[user]
name = <User Here>
email = <Email Here>
[credential]
helper = osxkeychain
[color]
ui = auto
grep = auto
interactive = auto
[color "branch"]
@Test
fun testGivenDateInFormatX_WhenParsed_ShouldBeInFormatY() {
val date = dateInFormatX
val parserInTest = CustomDateParser()
val expectedDate = parserInTest.parse(date)
assertThat(expectedDate).isInFormatY()
}
@Test
fun testParseDateX() {
val date = givenDateInFormatX()
val result = whenParsed(date)
thenDateIsInFormatY(result)
}