Created
October 24, 2017 14:15
-
-
Save fbcbl/7370e6f6544858addf65cb620fdf520a to your computer and use it in GitHub Desktop.
kotlin_testing_pt3_example3
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(expected = UnderageDrinkingException::class) | |
fun `an underage user can't drink`() { | |
val ricardo = User(firstName = "Ricardo", lastName = "Trindade", age = 17) | |
ricardo.drink() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment