Skip to content

Instantly share code, notes, and snippets.

@le0nidas
Created June 19, 2021 10:11
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 le0nidas/e5b7967883b05c104ee60e479c92c9bb to your computer and use it in GitHub Desktop.
Save le0nidas/e5b7967883b05c104ee60e479c92c9bb to your computer and use it in GitHub Desktop.
@Test fun `a task that is not assigned is invalid`() {
val task = Task(AssignedTo.Nobody)
val taskChecker = TaskChecker {} // <-- check with seam
val actual = taskChecker.check(task)
assertThat(actual, equalTo(Invalid))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment