@Test
fun `new posts include new and local posts`() {
- assertThat(newElements.newPosts, containsInAnyOrder(post1, post2))
+ assertThat(newElements.newPosts(), containsInAnyOrder(post1, post2))
}
@Test
fun `new posts are filtered`() {
val newElements = NewElements(newPostNotification, newReplyNotification, localPostNotification, localReplyNotification, matchThisPost(post2), showAllReplies)
- assertThat(newElements.newPosts, contains(post2))
+ assertThat(newElements.newPosts(), contains(post2))
}
@Test
fun `new replies include new and local replies`() {
- assertThat(newElements.newReplies, containsInAnyOrder(reply1, reply2))
+ assertThat(newElements.newReplies(), containsInAnyOrder(reply1, reply2))
}
@Test
fun `new replies are filtered`() {
val newElements = NewElements(newPostNotification, newReplyNotification, localPostNotification, localReplyNotification, showAllPosts, matchThisReply(reply2))
- assertThat(newElements.newReplies, containsInAnyOrder(reply2))
+ assertThat(newElements.newReplies(), containsInAnyOrder(reply2))
}
}