Created
November 21, 2018 03:33
-
-
Save EricDw/53d10738dcb7c5e5d8ffcd3b52a1c0ba to your computer and use it in GitHub Desktop.
A Unit Test demostrating how I
expected the Pipeline Interface to look.
This file contains 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 given_1_when_send_then_string_of_1() { | |
// Arrange | |
val input: Int = 1 | |
val expected: String = "1" | |
lateinit var actual: String | |
// Act | |
CoroutineTestingScope.launch { | |
intToStringPipeline.send(input) | |
actual = intToStringPipeline.receive() | |
} | |
// Assert | |
Assert.assertEquals(expected, actual) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment